	.file	"331023.c"
	.intel_syntax noprefix
	.text
	.globl	a
	.bss
	.align 32
	.type	a, @object
	.size	a, 4000
a:
	.zero	4000
	.globl	n
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.text
	.globl	N
	.type	N, @function
N:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -20[rbp], edi
	mov	DWORD PTR -24[rbp], esi
	mov	DWORD PTR -4[rbp], 0
	jmp	.L2
.L3:
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, a[rip]
	mov	eax, DWORD PTR [rdx+rax]
	add	DWORD PTR -4[rbp], eax
	mov	ecx, DWORD PTR n[rip]
	mov	eax, DWORD PTR -4[rbp]
	cdq
	idiv	ecx
	mov	DWORD PTR -4[rbp], edx
	add	DWORD PTR -20[rbp], 1
.L2:
	mov	eax, DWORD PTR -20[rbp]
	cmp	eax, DWORD PTR -24[rbp]
	jle	.L3
	mov	eax, DWORD PTR -4[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	N, .-N
	.globl	M
	.type	M, @function
M:
.LFB1:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -20[rbp], edi
	mov	DWORD PTR -24[rbp], esi
	mov	DWORD PTR -4[rbp], 1
	jmp	.L6
.L7:
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, a[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	edx, DWORD PTR -4[rbp]
	imul	eax, edx
	mov	DWORD PTR -4[rbp], eax
	mov	ecx, DWORD PTR n[rip]
	mov	eax, DWORD PTR -4[rbp]
	cdq
	idiv	ecx
	mov	DWORD PTR -4[rbp], edx
	add	DWORD PTR -20[rbp], 1
.L6:
	mov	eax, DWORD PTR -20[rbp]
	cmp	eax, DWORD PTR -24[rbp]
	jle	.L7
	mov	eax, DWORD PTR -4[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	M, .-M
	.globl	H
	.type	H, @function
H:
.LFB2:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -20[rbp], edi
	mov	DWORD PTR -24[rbp], esi
	mov	DWORD PTR -4[rbp], 0
	jmp	.L10
.L11:
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, a[rip]
	mov	eax, DWORD PTR [rdx+rax]
	xor	DWORD PTR -4[rbp], eax
	add	DWORD PTR -20[rbp], 1
.L10:
	mov	eax, DWORD PTR -20[rbp]
	cmp	eax, DWORD PTR -24[rbp]
	jle	.L11
	mov	eax, DWORD PTR -4[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	H, .-H
	.section	.rodata
.LC0:
	.string	"%d%d"
.LC1:
	.string	"%d"
.LC2:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB3:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 3944
	.cfi_offset 3, -24
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	lea	rax, -8048[rbp]
	mov	rdx, rax
	lea	rsi, n[rip]
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	DWORD PTR -8044[rbp], 0
	jmp	.L14
.L15:
	mov	eax, DWORD PTR -8044[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, a[rip]
	add	rax, rdx
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	add	DWORD PTR -8044[rbp], 1
.L14:
	mov	eax, DWORD PTR n[rip]
	cmp	DWORD PTR -8044[rbp], eax
	jl	.L15
	lea	rdx, -8032[rbp]
	mov	eax, 0
	mov	ecx, 500
	mov	rdi, rdx
	rep stosq
	lea	rdx, -4032[rbp]
	mov	eax, 0
	mov	ecx, 500
	mov	rdi, rdx
	rep stosq
	mov	DWORD PTR -8044[rbp], 0
	jmp	.L16
.L17:
	lea	rdx, -4032[rbp]
	mov	eax, DWORD PTR -8044[rbp]
	cdqe
	sal	rax, 2
	add	rdx, rax
	lea	rcx, -8032[rbp]
	mov	eax, DWORD PTR -8044[rbp]
	cdqe
	sal	rax, 2
	add	rax, rcx
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	add	DWORD PTR -8044[rbp], 1
.L16:
	mov	eax, DWORD PTR -8048[rbp]
	cmp	DWORD PTR -8044[rbp], eax
	jl	.L17
	mov	DWORD PTR -8044[rbp], 0
	jmp	.L18
.L21:
	mov	eax, DWORD PTR -8044[rbp]
	cdqe
	mov	edx, DWORD PTR -4032[rbp+rax*4]
	mov	eax, DWORD PTR -8044[rbp]
	cdqe
	mov	eax, DWORD PTR -8032[rbp+rax*4]
	mov	esi, edx
	mov	edi, eax
	call	N
	mov	ebx, eax
	mov	eax, DWORD PTR -8044[rbp]
	cdqe
	mov	edx, DWORD PTR -4032[rbp+rax*4]
	mov	eax, DWORD PTR -8044[rbp]
	cdqe
	mov	eax, DWORD PTR -8032[rbp+rax*4]
	mov	esi, edx
	mov	edi, eax
	call	M
	cmp	ebx, eax
	jg	.L19
	mov	eax, DWORD PTR -8044[rbp]
	cdqe
	mov	edx, DWORD PTR -4032[rbp+rax*4]
	mov	eax, DWORD PTR -8044[rbp]
	cdqe
	mov	eax, DWORD PTR -8032[rbp+rax*4]
	mov	esi, edx
	mov	edi, eax
	call	N
	mov	DWORD PTR -8040[rbp], eax
	mov	eax, DWORD PTR -8044[rbp]
	cdqe
	mov	edx, DWORD PTR -4032[rbp+rax*4]
	mov	eax, DWORD PTR -8044[rbp]
	cdqe
	mov	eax, DWORD PTR -8032[rbp+rax*4]
	mov	esi, edx
	mov	edi, eax
	call	M
	mov	DWORD PTR -8036[rbp], eax
	jmp	.L20
.L19:
	mov	eax, DWORD PTR -8044[rbp]
	cdqe
	mov	edx, DWORD PTR -4032[rbp+rax*4]
	mov	eax, DWORD PTR -8044[rbp]
	cdqe
	mov	eax, DWORD PTR -8032[rbp+rax*4]
	mov	esi, edx
	mov	edi, eax
	call	N
	mov	DWORD PTR -8036[rbp], eax
	mov	eax, DWORD PTR -8044[rbp]
	cdqe
	mov	edx, DWORD PTR -4032[rbp+rax*4]
	mov	eax, DWORD PTR -8044[rbp]
	cdqe
	mov	eax, DWORD PTR -8032[rbp+rax*4]
	mov	esi, edx
	mov	edi, eax
	call	M
	mov	DWORD PTR -8040[rbp], eax
.L20:
	mov	edx, DWORD PTR -8036[rbp]
	mov	eax, DWORD PTR -8040[rbp]
	mov	esi, edx
	mov	edi, eax
	call	H
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -8044[rbp], 1
.L18:
	mov	eax, DWORD PTR -8048[rbp]
	cmp	DWORD PTR -8044[rbp], eax
	jl	.L21
	mov	eax, 0
	mov	rbx, QWORD PTR -24[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L23
	call	__stack_chk_fail@PLT
.L23:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.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	"331023.c"
	.text
	.global	a
	.bss
	.align	2
	.type	a, %object
	.size	a, 4000
a:
	.space	4000
	.comm	n,4,4
	.global	__aeabi_idivmod
	.text
	.align	2
	.global	N
	.syntax unified
	.arm
	.fpu softvfp
	.type	N, %function
N:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L2
.L3:
	ldr	r2, .L5
	ldr	r3, [fp, #-16]
	ldr	r3, [r2, r3, lsl #2]
	ldr	r2, [fp, #-8]
	add	r3, r2, r3
	str	r3, [fp, #-8]
	ldr	r3, .L5+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	mov	r1, r2
	mov	r0, r3
	bl	__aeabi_idivmod
	mov	r3, r1
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L2:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	ble	.L3
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L6:
	.align	2
.L5:
	.word	a
	.word	n
	.size	N, .-N
	.align	2
	.global	M
	.syntax unified
	.arm
	.fpu softvfp
	.type	M, %function
M:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	mov	r3, #1
	str	r3, [fp, #-8]
	b	.L8
.L9:
	ldr	r2, .L11
	ldr	r3, [fp, #-16]
	ldr	r2, [r2, r3, lsl #2]
	ldr	r3, [fp, #-8]
	mul	r3, r2, r3
	str	r3, [fp, #-8]
	ldr	r3, .L11+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	mov	r1, r2
	mov	r0, r3
	bl	__aeabi_idivmod
	mov	r3, r1
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L8:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	ble	.L9
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L12:
	.align	2
.L11:
	.word	a
	.word	n
	.size	M, .-M
	.align	2
	.global	H
	.syntax unified
	.arm
	.fpu softvfp
	.type	H, %function
H:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L14
.L15:
	ldr	r2, .L17
	ldr	r3, [fp, #-16]
	ldr	r3, [r2, r3, lsl #2]
	ldr	r2, [fp, #-8]
	eor	r3, r3, r2
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L14:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	ble	.L15
	ldr	r3, [fp, #-8]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L18:
	.align	2
.L17:
	.word	a
	.size	H, .-H
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%d%d\000"
	.align	2
.LC1:
	.ascii	"%d\000"
	.align	2
.LC2:
	.ascii	"%d\012\000"
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 8024
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #8000
	sub	sp, sp, #28
	ldr	r3, .L30
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #8000
	sub	r3, r3, #12
	sub	r3, r3, #20
	mov	r2, r3
	ldr	r1, .L30+4
	ldr	r0, .L30+8
	bl	__isoc99_scanf
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-3920]
	b	.L20
.L21:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-3920]
	lsl	r3, r3, #2
	ldr	r2, .L30+12
	add	r3, r3, r2
	mov	r1, r3
	ldr	r0, .L30+16
	bl	__isoc99_scanf
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-3920]
	add	r3, r3, #1
	str	r3, [r2, #-3920]
.L20:
	ldr	r3, .L30+4
	ldr	r3, [r3]
	sub	r2, fp, #4096
	sub	r2, r2, #12
	ldr	r2, [r2, #-3920]
	cmp	r2, r3
	blt	.L21
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #3904
	sub	r3, r3, #4
	mov	r2, #4000
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #4000
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r2, #4000
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-3920]
	b	.L22
.L23:
	sub	r3, fp, #8000
	sub	r3, r3, #12
	sub	r3, r3, #4
	sub	r2, fp, #4096
	sub	r2, r2, #12
	ldr	r2, [r2, #-3920]
	lsl	r2, r2, #2
	add	r1, r3, r2
	sub	r3, fp, #4000
	sub	r3, r3, #12
	sub	r3, r3, #4
	sub	r2, fp, #4096
	sub	r2, r2, #12
	ldr	r2, [r2, #-3920]
	lsl	r2, r2, #2
	add	r3, r3, r2
	mov	r2, r3
	ldr	r0, .L30+8
	bl	__isoc99_scanf
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-3920]
	add	r3, r3, #1
	str	r3, [r2, #-3920]
.L22:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-3924]
	sub	r2, fp, #4096
	sub	r2, r2, #12
	ldr	r2, [r2, #-3920]
	cmp	r2, r3
	blt	.L23
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-3920]
	b	.L24
.L27:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-3920]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3, #-3908]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-3920]
	lsl	r3, r3, #2
	sub	r1, fp, #12
	add	r3, r1, r3
	ldr	r3, [r3, #-4004]
	mov	r1, r3
	mov	r0, r2
	bl	N
	mov	r4, r0
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-3920]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3, #-3908]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-3920]
	lsl	r3, r3, #2
	sub	r1, fp, #12
	add	r3, r1, r3
	ldr	r3, [r3, #-4004]
	mov	r1, r3
	mov	r0, r2
	bl	M
	mov	r3, r0
	cmp	r4, r3
	bgt	.L25
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-3920]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3, #-3908]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-3920]
	lsl	r3, r3, #2
	sub	r1, fp, #12
	add	r3, r1, r3
	ldr	r3, [r3, #-4004]
	sub	r1, fp, #4096
	sub	r1, r1, #12
	mov	r4, r1
	mov	r1, r3
	mov	r0, r2
	bl	N
	str	r0, [r4, #-3916]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-3920]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3, #-3908]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-3920]
	lsl	r3, r3, #2
	sub	r1, fp, #12
	add	r3, r1, r3
	ldr	r3, [r3, #-4004]
	sub	r1, fp, #4096
	sub	r1, r1, #12
	mov	r4, r1
	mov	r1, r3
	mov	r0, r2
	bl	M
	str	r0, [r4, #-3912]
	b	.L26
.L25:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-3920]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3, #-3908]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-3920]
	lsl	r3, r3, #2
	sub	r1, fp, #12
	add	r3, r1, r3
	ldr	r3, [r3, #-4004]
	sub	r1, fp, #4096
	sub	r1, r1, #12
	mov	r4, r1
	mov	r1, r3
	mov	r0, r2
	bl	N
	str	r0, [r4, #-3912]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-3920]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3, #-3908]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-3920]
	lsl	r3, r3, #2
	sub	r1, fp, #12
	add	r3, r1, r3
	ldr	r3, [r3, #-4004]
	sub	r1, fp, #4096
	sub	r1, r1, #12
	mov	r4, r1
	mov	r1, r3
	mov	r0, r2
	bl	M
	str	r0, [r4, #-3916]
.L26:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r1, [r2, #-3912]
	ldr	r0, [r3, #-3916]
	bl	H
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L30+20
	bl	printf
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-3920]
	add	r3, r3, #1
	str	r3, [r2, #-3920]
.L24:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-3924]
	sub	r2, fp, #4096
	sub	r2, r2, #12
	ldr	r2, [r2, #-3920]
	cmp	r2, r3
	blt	.L27
	mov	r3, #0
	ldr	r2, .L30
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L29
	bl	__stack_chk_fail
.L29:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L31:
	.align	2
.L30:
	.word	.LC3
	.word	n
	.word	.LC0
	.word	a
	.word	.LC1
	.word	.LC2
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
