	.file	"856022.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"%d %d %d"
.LC1:
	.string	"%d %d"
.LC2:
	.string	"%d\n"
.LC3:
	.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	r11, -573440[rsp]
.LPSRL0:
	sub	rsp, 4096
	or	DWORD PTR [rsp], 0
	cmp	rsp, r11
	jne	.LPSRL0
	sub	rsp, 3584
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	jmp	.L2
.L21:
	mov	DWORD PTR -576996[rbp], 1
	jmp	.L3
.L20:
	lea	rcx, -577008[rbp]
	lea	rdx, -577004[rbp]
	lea	rax, -577000[rbp]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	DWORD PTR -576980[rbp], 1
	jmp	.L4
.L5:
	lea	rdx, -576976[rbp]
	mov	eax, DWORD PTR -576980[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	lea	rdx, 4[rax]
	lea	rcx, -576976[rbp]
	mov	eax, DWORD PTR -576980[rbp]
	cdqe
	sal	rax, 3
	add	rax, rcx
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	add	DWORD PTR -576980[rbp], 1
.L4:
	mov	eax, DWORD PTR -577000[rbp]
	cmp	DWORD PTR -576980[rbp], eax
	jle	.L5
	mov	DWORD PTR -576992[rbp], 0
	jmp	.L6
.L9:
	mov	DWORD PTR -576988[rbp], 0
	jmp	.L7
.L8:
	mov	eax, DWORD PTR -576988[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -576992[rbp]
	cdqe
	imul	rax, rax, 1200
	add	rax, rdx
	mov	DWORD PTR -576016[rbp+rax*4], -10000000
	add	DWORD PTR -576988[rbp], 1
.L7:
	cmp	DWORD PTR -576988[rbp], 1199
	jle	.L8
	add	DWORD PTR -576992[rbp], 1
.L6:
	cmp	DWORD PTR -576992[rbp], 119
	jle	.L9
	mov	DWORD PTR -576988[rbp], 0
	jmp	.L10
.L11:
	mov	eax, DWORD PTR -576988[rbp]
	cdqe
	mov	DWORD PTR -576016[rbp+rax*4], 0
	add	DWORD PTR -576988[rbp], 1
.L10:
	cmp	DWORD PTR -576988[rbp], 1199
	jle	.L11
	mov	DWORD PTR -576992[rbp], 1
	jmp	.L12
.L18:
	mov	eax, DWORD PTR -577004[rbp]
	mov	DWORD PTR -576988[rbp], eax
	jmp	.L13
.L17:
	mov	eax, DWORD PTR -577008[rbp]
	mov	DWORD PTR -576984[rbp], eax
	jmp	.L14
.L16:
	mov	eax, DWORD PTR -576988[rbp]
	lea	edx, -1[rax]
	mov	eax, DWORD PTR -576992[rbp]
	cdqe
	mov	ecx, DWORD PTR -576976[rbp+rax*8]
	mov	eax, DWORD PTR -576984[rbp]
	sub	eax, ecx
	movsx	rcx, eax
	movsx	rax, edx
	imul	rax, rax, 1200
	add	rax, rcx
	mov	edx, DWORD PTR -576016[rbp+rax*4]
	mov	eax, DWORD PTR -576992[rbp]
	cdqe
	mov	eax, DWORD PTR -576972[rbp+rax*8]
	add	edx, eax
	mov	eax, DWORD PTR -576984[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -576988[rbp]
	cdqe
	imul	rax, rax, 1200
	add	rax, rcx
	mov	eax, DWORD PTR -576016[rbp+rax*4]
	cmp	edx, eax
	cmovge	eax, edx
	mov	edx, DWORD PTR -576984[rbp]
	movsx	rcx, edx
	mov	edx, DWORD PTR -576988[rbp]
	movsx	rdx, edx
	imul	rdx, rdx, 1200
	add	rdx, rcx
	mov	DWORD PTR -576016[rbp+rdx*4], eax
	sub	DWORD PTR -576984[rbp], 1
.L14:
	mov	eax, DWORD PTR -576992[rbp]
	cdqe
	mov	eax, DWORD PTR -576976[rbp+rax*8]
	cmp	DWORD PTR -576984[rbp], eax
	jl	.L15
	cmp	DWORD PTR -576984[rbp], 0
	jns	.L16
.L15:
	sub	DWORD PTR -576988[rbp], 1
.L13:
	cmp	DWORD PTR -576988[rbp], 0
	jg	.L17
	add	DWORD PTR -576992[rbp], 1
.L12:
	mov	eax, DWORD PTR -577000[rbp]
	cmp	DWORD PTR -576992[rbp], eax
	jle	.L18
	mov	eax, DWORD PTR -577004[rbp]
	mov	edx, DWORD PTR -577008[rbp]
	movsx	rdx, edx
	cdqe
	imul	rax, rax, 1200
	add	rax, rdx
	mov	eax, DWORD PTR -576016[rbp+rax*4]
	test	eax, eax
	jns	.L19
	mov	eax, DWORD PTR -577004[rbp]
	mov	edx, DWORD PTR -577008[rbp]
	movsx	rdx, edx
	cdqe
	imul	rax, rax, 1200
	add	rax, rdx
	mov	DWORD PTR -576016[rbp+rax*4], 0
.L19:
	mov	eax, DWORD PTR -577004[rbp]
	mov	edx, DWORD PTR -577008[rbp]
	movsx	rdx, edx
	cdqe
	imul	rax, rax, 1200
	add	rax, rdx
	mov	eax, DWORD PTR -576016[rbp+rax*4]
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -576996[rbp], 1
.L3:
	mov	eax, DWORD PTR -577012[rbp]
	cmp	DWORD PTR -576996[rbp], eax
	jle	.L20
.L2:
	lea	rax, -577012[rbp]
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	cmp	eax, -1
	jne	.L21
	mov	eax, 0
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L23
	call	__stack_chk_fail@PLT
.L23:
	leave
	.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	"856022.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%d %d %d\000"
	.align	2
.LC1:
	.ascii	"%d %d\000"
	.align	2
.LC2:
	.ascii	"%d\012\000"
	.align	2
.LC3:
	.ascii	"%d\000"
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 577000
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #573440
	sub	sp, sp, #3552
	sub	sp, sp, #8
	ldr	r3, .L24
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	b	.L2
.L21:
	sub	r3, fp, #573440
	sub	r3, r3, #4
	mov	r2, r3
	mov	r3, #1
	str	r3, [r2, #-3544]
	b	.L3
.L20:
	ldr	r3, .L24+4
	sub	r2, fp, #4
	add	r3, r2, r3
	sub	r2, fp, #573440
	sub	r2, r2, #4
	sub	r2, r2, #3552
	ldr	r1, .L24+8
	sub	r0, fp, #4
	add	r1, r0, r1
	ldr	r0, .L24+12
	bl	__isoc99_scanf
	sub	r3, fp, #573440
	sub	r3, r3, #4
	mov	r2, r3
	mov	r3, #1
	str	r3, [r2, #-3528]
	b	.L4
.L5:
	ldr	r3, .L24+16
	sub	r2, fp, #4
	add	r3, r2, r3
	sub	r2, fp, #573440
	sub	r2, r2, #4
	ldr	r2, [r2, #-3528]
	lsl	r2, r2, #3
	add	r1, r3, r2
	ldr	r3, .L24+16
	sub	r2, fp, #4
	add	r3, r2, r3
	sub	r2, fp, #573440
	sub	r2, r2, #4
	ldr	r2, [r2, #-3528]
	lsl	r2, r2, #3
	add	r3, r3, r2
	add	r3, r3, #4
	mov	r2, r3
	ldr	r0, .L24+20
	bl	__isoc99_scanf
	sub	r3, fp, #573440
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #573440
	sub	r3, r3, #4
	ldr	r3, [r3, #-3528]
	add	r3, r3, #1
	str	r3, [r2, #-3528]
.L4:
	sub	r3, fp, #573440
	sub	r3, r3, #4
	ldr	r3, [r3, #-3548]
	sub	r2, fp, #573440
	sub	r2, r2, #4
	ldr	r2, [r2, #-3528]
	cmp	r2, r3
	ble	.L5
	sub	r3, fp, #573440
	sub	r3, r3, #4
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-3540]
	b	.L6
.L9:
	sub	r3, fp, #573440
	sub	r3, r3, #4
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-3536]
	b	.L7
.L8:
	sub	r3, fp, #573440
	sub	r3, r3, #4
	mov	r1, r3
	sub	r3, fp, #573440
	sub	r3, r3, #4
	ldr	r2, [r3, #-3540]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #4
	sub	r2, r2, r3
	lsl	r3, r2, #4
	mov	r2, r3
	sub	r3, fp, #573440
	sub	r3, r3, #4
	ldr	r3, [r3, #-3536]
	add	r3, r2, r3
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r2, .L24+24
	str	r2, [r3, #-2564]
	sub	r3, fp, #573440
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #573440
	sub	r3, r3, #4
	ldr	r3, [r3, #-3536]
	add	r3, r3, #1
	str	r3, [r2, #-3536]
.L7:
	sub	r3, fp, #573440
	sub	r3, r3, #4
	ldr	r3, [r3, #-3536]
	cmp	r3, #1200
	blt	.L8
	sub	r3, fp, #573440
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #573440
	sub	r3, r3, #4
	ldr	r3, [r3, #-3540]
	add	r3, r3, #1
	str	r3, [r2, #-3540]
.L6:
	sub	r3, fp, #573440
	sub	r3, r3, #4
	ldr	r3, [r3, #-3540]
	cmp	r3, #119
	ble	.L9
	sub	r3, fp, #573440
	sub	r3, r3, #4
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-3536]
	b	.L10
.L11:
	sub	r3, fp, #573440
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #573440
	sub	r3, r3, #4
	ldr	r3, [r3, #-3536]
	lsl	r3, r3, #2
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3, #-2564]
	sub	r3, fp, #573440
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #573440
	sub	r3, r3, #4
	ldr	r3, [r3, #-3536]
	add	r3, r3, #1
	str	r3, [r2, #-3536]
.L10:
	sub	r3, fp, #573440
	sub	r3, r3, #4
	ldr	r3, [r3, #-3536]
	cmp	r3, #1200
	blt	.L11
	sub	r3, fp, #573440
	sub	r3, r3, #4
	mov	r2, r3
	mov	r3, #1
	str	r3, [r2, #-3540]
	b	.L12
.L18:
	sub	r3, fp, #573440
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #573440
	sub	r3, r3, #4
	ldr	r3, [r3, #-3552]
	str	r3, [r2, #-3536]
	b	.L13
.L17:
	sub	r3, fp, #573440
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #573440
	sub	r3, r3, #4
	ldr	r3, [r3, #-3556]
	str	r3, [r2, #-3532]
	b	.L14
.L16:
	sub	r3, fp, #573440
	sub	r3, r3, #4
	ldr	r3, [r3, #-3536]
	sub	r2, r3, #1
	sub	r3, fp, #573440
	sub	r3, r3, #4
	mov	r1, r3
	sub	r3, fp, #573440
	sub	r3, r3, #4
	ldr	r3, [r3, #-3540]
	lsl	r3, r3, #3
	add	r3, r1, r3
	ldr	r3, [r3, #-3524]
	sub	r1, fp, #573440
	sub	r1, r1, #4
	ldr	r1, [r1, #-3532]
	sub	r1, r1, r3
	sub	r3, fp, #573440
	sub	r3, r3, #4
	mov	r0, r3
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #4
	sub	r2, r2, r3
	lsl	r3, r2, #4
	mov	r2, r3
	add	r3, r2, r1
	lsl	r3, r3, #2
	add	r3, r0, r3
	ldr	r2, [r3, #-2564]
	sub	r3, fp, #573440
	sub	r3, r3, #4
	mov	r1, r3
	sub	r3, fp, #573440
	sub	r3, r3, #4
	ldr	r3, [r3, #-3540]
	lsl	r3, r3, #3
	add	r3, r1, r3
	ldr	r3, [r3, #-3520]
	add	r1, r2, r3
	sub	r3, fp, #573440
	sub	r3, r3, #4
	mov	r0, r3
	sub	r3, fp, #573440
	sub	r3, r3, #4
	ldr	r2, [r3, #-3536]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #4
	sub	r2, r2, r3
	lsl	r3, r2, #4
	mov	r2, r3
	sub	r3, fp, #573440
	sub	r3, r3, #4
	ldr	r3, [r3, #-3532]
	add	r3, r2, r3
	lsl	r3, r3, #2
	add	r3, r0, r3
	ldr	r3, [r3, #-2564]
	cmp	r1, r3
	movge	r1, r1
	movlt	r1, r3
	sub	r3, fp, #573440
	sub	r3, r3, #4
	mov	r0, r3
	sub	r3, fp, #573440
	sub	r3, r3, #4
	ldr	r2, [r3, #-3536]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #4
	sub	r2, r2, r3
	lsl	r3, r2, #4
	mov	r2, r3
	sub	r3, fp, #573440
	sub	r3, r3, #4
	ldr	r3, [r3, #-3532]
	add	r3, r2, r3
	lsl	r3, r3, #2
	add	r3, r0, r3
	str	r1, [r3, #-2564]
	sub	r3, fp, #573440
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #573440
	sub	r3, r3, #4
	ldr	r3, [r3, #-3532]
	sub	r3, r3, #1
	str	r3, [r2, #-3532]
.L14:
	sub	r3, fp, #573440
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #573440
	sub	r3, r3, #4
	ldr	r3, [r3, #-3540]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldr	r3, [r3, #-3524]
	sub	r2, fp, #573440
	sub	r2, r2, #4
	ldr	r2, [r2, #-3532]
	cmp	r2, r3
	blt	.L15
	sub	r3, fp, #573440
	sub	r3, r3, #4
	ldr	r3, [r3, #-3532]
	cmp	r3, #0
	bge	.L16
.L15:
	sub	r3, fp, #573440
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #573440
	sub	r3, r3, #4
	ldr	r3, [r3, #-3536]
	sub	r3, r3, #1
	str	r3, [r2, #-3536]
.L13:
	sub	r3, fp, #573440
	sub	r3, r3, #4
	ldr	r3, [r3, #-3536]
	cmp	r3, #0
	bgt	.L17
	sub	r3, fp, #573440
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #573440
	sub	r3, r3, #4
	ldr	r3, [r3, #-3540]
	add	r3, r3, #1
	str	r3, [r2, #-3540]
.L12:
	sub	r3, fp, #573440
	sub	r3, r3, #4
	ldr	r3, [r3, #-3548]
	sub	r2, fp, #573440
	sub	r2, r2, #4
	ldr	r2, [r2, #-3540]
	cmp	r2, r3
	ble	.L18
	sub	r3, fp, #573440
	sub	r3, r3, #4
	ldr	r2, [r3, #-3552]
	sub	r3, fp, #573440
	sub	r3, r3, #4
	ldr	r1, [r3, #-3556]
	sub	r3, fp, #573440
	sub	r3, r3, #4
	mov	r0, r3
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #4
	sub	r2, r2, r3
	lsl	r3, r2, #4
	mov	r2, r3
	add	r3, r2, r1
	lsl	r3, r3, #2
	add	r3, r0, r3
	ldr	r3, [r3, #-2564]
	cmp	r3, #0
	bge	.L19
	sub	r3, fp, #573440
	sub	r3, r3, #4
	ldr	r2, [r3, #-3552]
	sub	r3, fp, #573440
	sub	r3, r3, #4
	ldr	r1, [r3, #-3556]
	sub	r3, fp, #573440
	sub	r3, r3, #4
	mov	r0, r3
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #4
	sub	r2, r2, r3
	lsl	r3, r2, #4
	mov	r2, r3
	add	r3, r2, r1
	lsl	r3, r3, #2
	add	r3, r0, r3
	mov	r2, #0
	str	r2, [r3, #-2564]
.L19:
	sub	r3, fp, #573440
	sub	r3, r3, #4
	ldr	r2, [r3, #-3552]
	sub	r3, fp, #573440
	sub	r3, r3, #4
	ldr	r1, [r3, #-3556]
	sub	r3, fp, #573440
	sub	r3, r3, #4
	mov	r0, r3
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #4
	sub	r2, r2, r3
	lsl	r3, r2, #4
	mov	r2, r3
	add	r3, r2, r1
	lsl	r3, r3, #2
	add	r3, r0, r3
	ldr	r3, [r3, #-2564]
	mov	r1, r3
	ldr	r0, .L24+28
	bl	printf
	sub	r3, fp, #573440
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #573440
	sub	r3, r3, #4
	ldr	r3, [r3, #-3544]
	add	r3, r3, #1
	str	r3, [r2, #-3544]
.L3:
	sub	r3, fp, #573440
	sub	r3, r3, #4
	ldr	r3, [r3, #-3560]
	sub	r2, fp, #573440
	sub	r2, r2, #4
	ldr	r2, [r2, #-3544]
	cmp	r2, r3
	ble	.L20
.L2:
	ldr	r3, .L24+32
	sub	r2, fp, #4
	add	r3, r2, r3
	mov	r1, r3
	ldr	r0, .L24+36
	bl	__isoc99_scanf
	mov	r3, r0
	cmn	r3, #1
	bne	.L21
	mov	r3, #0
	ldr	r2, .L24
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L23
	bl	__stack_chk_fail
.L23:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L25:
	.align	2
.L24:
	.word	.LC4
	.word	-576996
	.word	-576988
	.word	.LC0
	.word	-576964
	.word	.LC1
	.word	-10000000
	.word	.LC2
	.word	-577000
	.word	.LC3
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
