	.file	"658310.c"
	.intel_syntax noprefix
	.text
	.globl	t
	.bss
	.align 4
	.type	t, @object
	.size	t, 4
t:
	.zero	4
	.globl	T
	.align 4
	.type	T, @object
	.size	T, 4
T:
	.zero	4
	.globl	L
	.align 4
	.type	L, @object
	.size	L, 4
L:
	.zero	4
	.globl	X
	.align 4
	.type	X, @object
	.size	X, 4
X:
	.zero	4
	.globl	l
	.align 4
	.type	l, @object
	.size	l, 4
l:
	.zero	4
	.globl	x
	.align 4
	.type	x, @object
	.size	x, 4
x:
	.zero	4
	.globl	foo
	.align 32
	.type	foo, @object
	.size	foo, 10001
foo:
	.zero	10001
	.globl	c
	.align 4
	.type	c, @object
	.size	c, 4
c:
	.zero	4
	.globl	sgn
	.align 4
	.type	sgn, @object
	.size	sgn, 4
sgn:
	.zero	4
	.globl	cur
	.type	cur, @object
	.size	cur, 1
cur:
	.zero	1
	.globl	level
	.align 4
	.type	level, @object
	.size	level, 4
level:
	.zero	4
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%s"
.LC2:
	.string	"Case #%d: YES\n"
.LC3:
	.string	"Case #%d: NO\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	rsi, T[rip]
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	DWORD PTR t[rip], 1
	jmp	.L2
.L27:
	lea	rsi, L[rip]
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rsi, X[rip]
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rsi, foo[rip]
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR X[rip]
	cmp	eax, 8
	jle	.L3
	mov	eax, DWORD PTR X[rip]
	cdq
	shr	edx, 30
	add	eax, edx
	and	eax, 3
	sub	eax, edx
	add	eax, 8
	mov	DWORD PTR X[rip], eax
.L3:
	mov	BYTE PTR cur[rip], 49
	mov	DWORD PTR sgn[rip], 1
	mov	DWORD PTR level[rip], 0
	mov	DWORD PTR x[rip], 0
	jmp	.L4
.L24:
	mov	DWORD PTR l[rip], 0
	jmp	.L5
.L23:
	mov	eax, DWORD PTR l[rip]
	cdqe
	lea	rdx, foo[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	cmp	al, 105
	jne	.L29
	movzx	eax, BYTE PTR cur[rip]
	movsx	eax, al
	cmp	eax, 107
	je	.L7
	cmp	eax, 107
	jg	.L6
	cmp	eax, 106
	je	.L8
	cmp	eax, 106
	jg	.L6
	cmp	eax, 49
	je	.L9
	cmp	eax, 105
	je	.L10
	jmp	.L6
.L9:
	mov	BYTE PTR cur[rip], 105
	jmp	.L6
.L10:
	mov	BYTE PTR cur[rip], 49
	mov	eax, DWORD PTR sgn[rip]
	neg	eax
	mov	DWORD PTR sgn[rip], eax
	jmp	.L6
.L8:
	mov	BYTE PTR cur[rip], 107
	mov	eax, DWORD PTR sgn[rip]
	neg	eax
	mov	DWORD PTR sgn[rip], eax
	jmp	.L6
.L7:
	mov	BYTE PTR cur[rip], 106
	jmp	.L6
.L29:
	nop
.L6:
	mov	eax, DWORD PTR l[rip]
	cdqe
	lea	rdx, foo[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	cmp	al, 106
	jne	.L30
	movzx	eax, BYTE PTR cur[rip]
	movsx	eax, al
	cmp	eax, 107
	je	.L12
	cmp	eax, 107
	jg	.L11
	cmp	eax, 106
	je	.L13
	cmp	eax, 106
	jg	.L11
	cmp	eax, 49
	je	.L14
	cmp	eax, 105
	je	.L15
	jmp	.L11
.L14:
	mov	BYTE PTR cur[rip], 106
	jmp	.L11
.L15:
	mov	BYTE PTR cur[rip], 107
	jmp	.L11
.L13:
	mov	BYTE PTR cur[rip], 49
	mov	eax, DWORD PTR sgn[rip]
	neg	eax
	mov	DWORD PTR sgn[rip], eax
	jmp	.L11
.L12:
	mov	BYTE PTR cur[rip], 105
	mov	eax, DWORD PTR sgn[rip]
	neg	eax
	mov	DWORD PTR sgn[rip], eax
	jmp	.L11
.L30:
	nop
.L11:
	mov	eax, DWORD PTR l[rip]
	cdqe
	lea	rdx, foo[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	cmp	al, 107
	jne	.L31
	movzx	eax, BYTE PTR cur[rip]
	movsx	eax, al
	cmp	eax, 107
	je	.L17
	cmp	eax, 107
	jg	.L16
	cmp	eax, 106
	je	.L18
	cmp	eax, 106
	jg	.L16
	cmp	eax, 49
	je	.L19
	cmp	eax, 105
	je	.L20
	jmp	.L16
.L19:
	mov	BYTE PTR cur[rip], 107
	jmp	.L16
.L20:
	mov	BYTE PTR cur[rip], 106
	mov	eax, DWORD PTR sgn[rip]
	neg	eax
	mov	DWORD PTR sgn[rip], eax
	jmp	.L16
.L18:
	mov	BYTE PTR cur[rip], 105
	jmp	.L16
.L17:
	mov	BYTE PTR cur[rip], 49
	mov	eax, DWORD PTR sgn[rip]
	neg	eax
	mov	DWORD PTR sgn[rip], eax
	jmp	.L16
.L31:
	nop
.L16:
	mov	eax, DWORD PTR level[rip]
	cmp	eax, 1
	jne	.L21
	mov	eax, DWORD PTR sgn[rip]
	cmp	eax, 1
	jne	.L21
	movzx	eax, BYTE PTR cur[rip]
	cmp	al, 106
	jne	.L21
	mov	eax, DWORD PTR level[rip]
	add	eax, 1
	mov	DWORD PTR level[rip], eax
	mov	BYTE PTR cur[rip], 49
.L21:
	mov	eax, DWORD PTR level[rip]
	test	eax, eax
	jne	.L22
	mov	eax, DWORD PTR sgn[rip]
	cmp	eax, 1
	jne	.L22
	movzx	eax, BYTE PTR cur[rip]
	cmp	al, 105
	jne	.L22
	mov	eax, DWORD PTR level[rip]
	add	eax, 1
	mov	DWORD PTR level[rip], eax
	mov	BYTE PTR cur[rip], 49
.L22:
	mov	eax, DWORD PTR l[rip]
	add	eax, 1
	mov	DWORD PTR l[rip], eax
.L5:
	mov	edx, DWORD PTR l[rip]
	mov	eax, DWORD PTR L[rip]
	cmp	edx, eax
	jl	.L23
	mov	eax, DWORD PTR x[rip]
	add	eax, 1
	mov	DWORD PTR x[rip], eax
.L4:
	mov	edx, DWORD PTR x[rip]
	mov	eax, DWORD PTR X[rip]
	cmp	edx, eax
	jl	.L24
	mov	eax, DWORD PTR level[rip]
	cmp	eax, 2
	jne	.L25
	mov	eax, DWORD PTR sgn[rip]
	cmp	eax, 1
	jne	.L25
	movzx	eax, BYTE PTR cur[rip]
	cmp	al, 107
	jne	.L25
	mov	eax, DWORD PTR t[rip]
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L26
.L25:
	mov	eax, DWORD PTR t[rip]
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
.L26:
	mov	eax, DWORD PTR t[rip]
	add	eax, 1
	mov	DWORD PTR t[rip], eax
.L2:
	mov	edx, DWORD PTR t[rip]
	mov	eax, DWORD PTR T[rip]
	cmp	edx, eax
	jle	.L27
	mov	eax, 0
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"658310.c"
	.text
	.comm	t,4,4
	.comm	T,4,4
	.comm	L,4,4
	.comm	X,4,4
	.comm	l,4,4
	.comm	x,4,4
	.comm	foo,10001,4
	.comm	c,4,4
	.comm	sgn,4,4
	.comm	cur,1,1
	.comm	level,4,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%d\000"
	.align	2
.LC1:
	.ascii	"%s\000"
	.align	2
.LC2:
	.ascii	"Case #%d: YES\012\000"
	.align	2
.LC3:
	.ascii	"Case #%d: NO\012\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r1, .L32
	ldr	r0, .L32+4
	bl	__isoc99_scanf
	ldr	r3, .L32+8
	mov	r2, #1
	str	r2, [r3]
	b	.L2
.L27:
	ldr	r1, .L32+12
	ldr	r0, .L32+4
	bl	__isoc99_scanf
	ldr	r1, .L32+16
	ldr	r0, .L32+4
	bl	__isoc99_scanf
	ldr	r1, .L32+20
	ldr	r0, .L32+24
	bl	__isoc99_scanf
	ldr	r3, .L32+16
	ldr	r3, [r3]
	cmp	r3, #8
	ble	.L3
	ldr	r3, .L32+16
	ldr	r3, [r3]
	rsbs	r2, r3, #0
	and	r3, r3, #3
	and	r2, r2, #3
	rsbpl	r3, r2, #0
	add	r3, r3, #8
	ldr	r2, .L32+16
	str	r3, [r2]
.L3:
	ldr	r3, .L32+28
	mov	r2, #49
	strb	r2, [r3]
	ldr	r3, .L32+32
	mov	r2, #1
	str	r2, [r3]
	ldr	r3, .L32+36
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L32+40
	mov	r2, #0
	str	r2, [r3]
	b	.L4
.L24:
	ldr	r3, .L32+44
	mov	r2, #0
	str	r2, [r3]
	b	.L5
.L23:
	ldr	r3, .L32+44
	ldr	r3, [r3]
	ldr	r2, .L32+20
	ldrb	r3, [r2, r3]	@ zero_extendqisi2
	cmp	r3, #105
	bne	.L29
	ldr	r3, .L32+28
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #107
	beq	.L7
	cmp	r3, #107
	bgt	.L6
	cmp	r3, #106
	beq	.L8
	cmp	r3, #106
	bgt	.L6
	cmp	r3, #49
	beq	.L9
	cmp	r3, #105
	beq	.L10
	b	.L6
.L9:
	ldr	r3, .L32+28
	mov	r2, #105
	strb	r2, [r3]
	b	.L6
.L10:
	ldr	r3, .L32+28
	mov	r2, #49
	strb	r2, [r3]
	ldr	r3, .L32+32
	ldr	r3, [r3]
	rsb	r3, r3, #0
	ldr	r2, .L32+32
	str	r3, [r2]
	b	.L6
.L8:
	ldr	r3, .L32+28
	mov	r2, #107
	strb	r2, [r3]
	ldr	r3, .L32+32
	ldr	r3, [r3]
	rsb	r3, r3, #0
	ldr	r2, .L32+32
	str	r3, [r2]
	b	.L6
.L7:
	ldr	r3, .L32+28
	mov	r2, #106
	strb	r2, [r3]
	b	.L6
.L29:
	nop
.L6:
	ldr	r3, .L32+44
	ldr	r3, [r3]
	ldr	r2, .L32+20
	ldrb	r3, [r2, r3]	@ zero_extendqisi2
	cmp	r3, #106
	bne	.L30
	ldr	r3, .L32+28
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #107
	beq	.L12
	cmp	r3, #107
	bgt	.L11
	cmp	r3, #106
	beq	.L13
	cmp	r3, #106
	bgt	.L11
	cmp	r3, #49
	beq	.L14
	cmp	r3, #105
	beq	.L15
	b	.L11
.L14:
	ldr	r3, .L32+28
	mov	r2, #106
	strb	r2, [r3]
	b	.L11
.L15:
	ldr	r3, .L32+28
	mov	r2, #107
	strb	r2, [r3]
	b	.L11
.L13:
	ldr	r3, .L32+28
	mov	r2, #49
	strb	r2, [r3]
	ldr	r3, .L32+32
	ldr	r3, [r3]
	rsb	r3, r3, #0
	ldr	r2, .L32+32
	str	r3, [r2]
	b	.L11
.L12:
	ldr	r3, .L32+28
	mov	r2, #105
	strb	r2, [r3]
	ldr	r3, .L32+32
	ldr	r3, [r3]
	rsb	r3, r3, #0
	ldr	r2, .L32+32
	str	r3, [r2]
	b	.L11
.L30:
	nop
.L11:
	ldr	r3, .L32+44
	ldr	r3, [r3]
	ldr	r2, .L32+20
	ldrb	r3, [r2, r3]	@ zero_extendqisi2
	cmp	r3, #107
	bne	.L31
	ldr	r3, .L32+28
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #107
	beq	.L17
	cmp	r3, #107
	bgt	.L16
	cmp	r3, #106
	beq	.L18
	cmp	r3, #106
	bgt	.L16
	cmp	r3, #49
	beq	.L19
	cmp	r3, #105
	beq	.L20
	b	.L16
.L19:
	ldr	r3, .L32+28
	mov	r2, #107
	strb	r2, [r3]
	b	.L16
.L20:
	ldr	r3, .L32+28
	mov	r2, #106
	strb	r2, [r3]
	ldr	r3, .L32+32
	ldr	r3, [r3]
	rsb	r3, r3, #0
	ldr	r2, .L32+32
	str	r3, [r2]
	b	.L16
.L18:
	ldr	r3, .L32+28
	mov	r2, #105
	strb	r2, [r3]
	b	.L16
.L17:
	ldr	r3, .L32+28
	mov	r2, #49
	strb	r2, [r3]
	ldr	r3, .L32+32
	ldr	r3, [r3]
	rsb	r3, r3, #0
	ldr	r2, .L32+32
	str	r3, [r2]
	b	.L16
.L31:
	nop
.L16:
	ldr	r3, .L32+36
	ldr	r3, [r3]
	cmp	r3, #1
	bne	.L21
	ldr	r3, .L32+32
	ldr	r3, [r3]
	cmp	r3, #1
	bne	.L21
	ldr	r3, .L32+28
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #106
	bne	.L21
	ldr	r3, .L32+36
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L32+36
	str	r3, [r2]
	ldr	r3, .L32+28
	mov	r2, #49
	strb	r2, [r3]
.L21:
	ldr	r3, .L32+36
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L22
	ldr	r3, .L32+32
	ldr	r3, [r3]
	cmp	r3, #1
	bne	.L22
	ldr	r3, .L32+28
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #105
	bne	.L22
	ldr	r3, .L32+36
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L32+36
	str	r3, [r2]
	ldr	r3, .L32+28
	mov	r2, #49
	strb	r2, [r3]
.L22:
	ldr	r3, .L32+44
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L32+44
	str	r3, [r2]
.L5:
	ldr	r3, .L32+44
	ldr	r2, [r3]
	ldr	r3, .L32+12
	ldr	r3, [r3]
	cmp	r2, r3
	blt	.L23
	ldr	r3, .L32+40
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L32+40
	str	r3, [r2]
.L4:
	ldr	r3, .L32+40
	ldr	r2, [r3]
	ldr	r3, .L32+16
	ldr	r3, [r3]
	cmp	r2, r3
	blt	.L24
	ldr	r3, .L32+36
	ldr	r3, [r3]
	cmp	r3, #2
	bne	.L25
	ldr	r3, .L32+32
	ldr	r3, [r3]
	cmp	r3, #1
	bne	.L25
	ldr	r3, .L32+28
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #107
	bne	.L25
	ldr	r3, .L32+8
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L32+48
	bl	printf
	b	.L26
.L25:
	ldr	r3, .L32+8
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L32+52
	bl	printf
.L26:
	ldr	r3, .L32+8
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L32+8
	str	r3, [r2]
.L2:
	ldr	r3, .L32+8
	ldr	r2, [r3]
	ldr	r3, .L32
	ldr	r3, [r3]
	cmp	r2, r3
	ble	.L27
	mov	r3, #0
	mov	r0, r3
	pop	{fp, pc}
.L33:
	.align	2
.L32:
	.word	T
	.word	.LC0
	.word	t
	.word	L
	.word	X
	.word	foo
	.word	.LC1
	.word	cur
	.word	sgn
	.word	level
	.word	x
	.word	l
	.word	.LC2
	.word	.LC3
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
