	.file	"622655.c"
	.intel_syntax noprefix
	.text
	.globl	n
	.bss
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.globl	i
	.align 4
	.type	i, @object
	.size	i, 4
i:
	.zero	4
	.globl	t
	.align 4
	.type	t, @object
	.size	t, 4
t:
	.zero	4
	.globl	x
	.align 4
	.type	x, @object
	.size	x, 4
x:
	.zero	4
	.globl	y
	.align 4
	.type	y, @object
	.size	y, 4
y:
	.zero	4
	.globl	a
	.align 32
	.type	a, @object
	.size	a, 444
a:
	.zero	444
	.globl	b
	.align 32
	.type	b, @object
	.size	b, 444
b:
	.zero	444
	.globl	s
	.align 32
	.type	s, @object
	.size	s, 111
s:
	.zero	111
	.section	.rodata
.LC0:
	.string	"%d%s"
.LC1:
	.string	"%d%d"
.LC2:
	.string	"%d"
	.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	rdx, s[rip]
	lea	rsi, n[rip]
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	scanf@PLT
	mov	DWORD PTR i[rip], 0
	jmp	.L2
.L3:
	mov	eax, DWORD PTR i[rip]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, b[rip]
	add	rdx, rax
	mov	eax, DWORD PTR i[rip]
	cdqe
	lea	rcx, 0[0+rax*4]
	lea	rax, a[rip]
	add	rax, rcx
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	scanf@PLT
	mov	eax, DWORD PTR i[rip]
	add	eax, 1
	mov	DWORD PTR i[rip], eax
.L2:
	mov	edx, DWORD PTR i[rip]
	mov	eax, DWORD PTR n[rip]
	cmp	edx, eax
	jl	.L3
	mov	DWORD PTR t[rip], 0
	jmp	.L4
.L9:
	mov	DWORD PTR x[rip], 0
	mov	DWORD PTR i[rip], 0
	jmp	.L5
.L8:
	mov	eax, DWORD PTR i[rip]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, b[rip]
	mov	edx, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR t[rip]
	cmp	edx, eax
	jle	.L6
	mov	eax, DWORD PTR i[rip]
	cdqe
	lea	rdx, s[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	cmp	al, 49
	sete	al
	movzx	edx, al
	mov	eax, DWORD PTR x[rip]
	add	eax, edx
	mov	DWORD PTR x[rip], eax
	jmp	.L7
.L6:
	mov	eax, DWORD PTR t[rip]
	mov	edx, DWORD PTR i[rip]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*4]
	lea	rdx, b[rip]
	mov	edx, DWORD PTR [rcx+rdx]
	sub	eax, edx
	mov	edx, DWORD PTR i[rip]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*4]
	lea	rdx, a[rip]
	mov	esi, DWORD PTR [rcx+rdx]
	cdq
	idiv	esi
	mov	edx, eax
	mov	eax, edx
	sar	eax, 31
	shr	eax, 31
	mov	ecx, eax
	lea	eax, [rdx+rcx]
	and	eax, 1
	sub	eax, ecx
	mov	ecx, eax
	mov	eax, DWORD PTR i[rip]
	cdqe
	lea	rdx, s[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	cmp	al, 48
	sete	al
	movzx	eax, al
	xor	ecx, eax
	mov	edx, ecx
	mov	eax, DWORD PTR x[rip]
	add	eax, edx
	mov	DWORD PTR x[rip], eax
.L7:
	mov	eax, DWORD PTR i[rip]
	add	eax, 1
	mov	DWORD PTR i[rip], eax
.L5:
	mov	edx, DWORD PTR i[rip]
	mov	eax, DWORD PTR n[rip]
	cmp	edx, eax
	jl	.L8
	mov	edx, DWORD PTR y[rip]
	mov	eax, DWORD PTR x[rip]
	cmp	edx, eax
	cmovge	eax, edx
	mov	DWORD PTR y[rip], eax
	mov	eax, DWORD PTR t[rip]
	add	eax, 1
	mov	DWORD PTR t[rip], eax
.L4:
	mov	eax, DWORD PTR t[rip]
	cmp	eax, 999
	jle	.L9
	mov	eax, DWORD PTR y[rip]
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	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	"622655.c"
	.text
	.comm	n,4,4
	.comm	i,4,4
	.comm	t,4,4
	.comm	x,4,4
	.comm	y,4,4
	.comm	a,444,4
	.comm	b,444,4
	.comm	s,111,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%d%s\000"
	.align	2
.LC1:
	.ascii	"%d%d\000"
	.global	__aeabi_idiv
	.align	2
.LC2:
	.ascii	"%d\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	r2, .L11
	ldr	r1, .L11+4
	ldr	r0, .L11+8
	bl	scanf
	ldr	r3, .L11+12
	mov	r2, #0
	str	r2, [r3]
	b	.L2
.L3:
	ldr	r3, .L11+12
	ldr	r3, [r3]
	lsl	r3, r3, #2
	ldr	r2, .L11+16
	add	r1, r3, r2
	ldr	r3, .L11+12
	ldr	r3, [r3]
	lsl	r3, r3, #2
	ldr	r2, .L11+20
	add	r3, r3, r2
	mov	r2, r3
	ldr	r0, .L11+24
	bl	scanf
	ldr	r3, .L11+12
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L11+12
	str	r3, [r2]
.L2:
	ldr	r3, .L11+12
	ldr	r2, [r3]
	ldr	r3, .L11+4
	ldr	r3, [r3]
	cmp	r2, r3
	blt	.L3
	ldr	r3, .L11+28
	mov	r2, #0
	str	r2, [r3]
	b	.L4
.L9:
	ldr	r3, .L11+32
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L11+12
	mov	r2, #0
	str	r2, [r3]
	b	.L5
.L8:
	ldr	r3, .L11+12
	ldr	r3, [r3]
	ldr	r2, .L11+20
	ldr	r2, [r2, r3, lsl #2]
	ldr	r3, .L11+28
	ldr	r3, [r3]
	cmp	r2, r3
	ble	.L6
	ldr	r3, .L11+12
	ldr	r3, [r3]
	ldr	r2, .L11
	ldrb	r3, [r2, r3]	@ zero_extendqisi2
	cmp	r3, #49
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	mov	r2, r3
	ldr	r3, .L11+32
	ldr	r3, [r3]
	add	r3, r2, r3
	ldr	r2, .L11+32
	str	r3, [r2]
	b	.L7
.L6:
	ldr	r3, .L11+28
	ldr	r2, [r3]
	ldr	r3, .L11+12
	ldr	r3, [r3]
	ldr	r1, .L11+20
	ldr	r3, [r1, r3, lsl #2]
	sub	r2, r2, r3
	ldr	r3, .L11+12
	ldr	r3, [r3]
	ldr	r1, .L11+16
	ldr	r3, [r1, r3, lsl #2]
	mov	r1, r3
	mov	r0, r2
	bl	__aeabi_idiv
	mov	r3, r0
	cmp	r3, #0
	and	r3, r3, #1
	rsblt	r3, r3, #0
	ldr	r2, .L11+12
	ldr	r2, [r2]
	ldr	r1, .L11
	ldrb	r2, [r1, r2]	@ zero_extendqisi2
	cmp	r2, #48
	moveq	r2, #1
	movne	r2, #0
	and	r2, r2, #255
	eor	r2, r2, r3
	ldr	r3, .L11+32
	ldr	r3, [r3]
	add	r3, r2, r3
	ldr	r2, .L11+32
	str	r3, [r2]
.L7:
	ldr	r3, .L11+12
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L11+12
	str	r3, [r2]
.L5:
	ldr	r3, .L11+12
	ldr	r2, [r3]
	ldr	r3, .L11+4
	ldr	r3, [r3]
	cmp	r2, r3
	blt	.L8
	ldr	r3, .L11+36
	ldr	r2, [r3]
	ldr	r3, .L11+32
	ldr	r3, [r3]
	cmp	r2, r3
	movge	r3, r2
	movlt	r3, r3
	ldr	r2, .L11+36
	str	r3, [r2]
	ldr	r3, .L11+28
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L11+28
	str	r3, [r2]
.L4:
	ldr	r3, .L11+28
	ldr	r3, [r3]
	cmp	r3, #1000
	blt	.L9
	ldr	r3, .L11+36
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L11+40
	bl	printf
	mov	r3, #0
	mov	r0, r3
	pop	{fp, pc}
.L12:
	.align	2
.L11:
	.word	s
	.word	n
	.word	.LC0
	.word	i
	.word	a
	.word	b
	.word	.LC1
	.word	t
	.word	x
	.word	y
	.word	.LC2
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
