	.file	"64199947.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"%d "
.LC1:
	.string	"%d %d %d "
.LC2:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	r11, -16384[rsp]
.LPSRL0:
	sub	rsp, 4096
	or	DWORD PTR [rsp], 0
	cmp	rsp, r11
	jne	.LPSRL0
	sub	rsp, 3824
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -20204[rbp]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	DWORD PTR -20188[rbp], 0
	jmp	.L2
.L7:
	mov	DWORD PTR -20184[rbp], 0
	jmp	.L3
.L6:
	mov	DWORD PTR -20180[rbp], 0
	jmp	.L4
.L5:
	mov	eax, DWORD PTR -20180[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -20184[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	add	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	add	rax, rcx
	mov	DWORD PTR -20176[rbp+rax*4], -1
	add	DWORD PTR -20180[rbp], 1
.L4:
	cmp	DWORD PTR -20180[rbp], 70
	jle	.L5
	add	DWORD PTR -20184[rbp], 1
.L3:
	cmp	DWORD PTR -20184[rbp], 70
	jle	.L6
	lea	rcx, -20200[rbp]
	lea	rdx, -20192[rbp]
	lea	rax, -20196[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	edx, DWORD PTR -20200[rbp]
	mov	esi, DWORD PTR -20192[rbp]
	mov	eax, DWORD PTR -20196[rbp]
	lea	rcx, -20176[rbp]
	mov	edi, eax
	call	solve
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -20188[rbp], 1
.L2:
	mov	eax, DWORD PTR -20204[rbp]
	cmp	DWORD PTR -20188[rbp], eax
	jl	.L7
	mov	eax, 0
	mov	rdi, QWORD PTR -8[rbp]
	sub	rdi, QWORD PTR fs:40
	je	.L9
	call	__stack_chk_fail@PLT
.L9:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.globl	solve
	.type	solve, @function
solve:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	DWORD PTR -20[rbp], edi
	mov	DWORD PTR -24[rbp], esi
	mov	DWORD PTR -28[rbp], edx
	mov	QWORD PTR -40[rbp], rcx
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	imul	rdx, rax, 284
	mov	rax, QWORD PTR -40[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	mov	eax, DWORD PTR [rdx+rax*4]
	cmp	eax, -1
	je	.L11
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	imul	rdx, rax, 284
	mov	rax, QWORD PTR -40[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	mov	eax, DWORD PTR [rdx+rax*4]
	jmp	.L12
.L11:
	cmp	DWORD PTR -20[rbp], 0
	jne	.L13
	cmp	DWORD PTR -24[rbp], 0
	jne	.L13
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	imul	rdx, rax, 284
	mov	rax, QWORD PTR -40[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	mov	DWORD PTR [rdx+rax*4], 1
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	imul	rdx, rax, 284
	mov	rax, QWORD PTR -40[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	mov	eax, DWORD PTR [rdx+rax*4]
	jmp	.L12
.L13:
	cmp	DWORD PTR -20[rbp], 0
	jne	.L14
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	imul	rdx, rax, 284
	mov	rax, QWORD PTR -40[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	mov	DWORD PTR [rdx+rax*4], 0
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	imul	rdx, rax, 284
	mov	rax, QWORD PTR -40[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	mov	eax, DWORD PTR [rdx+rax*4]
	jmp	.L12
.L14:
	mov	DWORD PTR -8[rbp], 0
	mov	eax, DWORD PTR -28[rbp]
	mov	DWORD PTR -4[rbp], eax
	jmp	.L15
.L16:
	mov	eax, DWORD PTR -24[rbp]
	sub	eax, DWORD PTR -4[rbp]
	mov	edx, DWORD PTR -20[rbp]
	lea	edi, -1[rdx]
	mov	rcx, QWORD PTR -40[rbp]
	mov	edx, DWORD PTR -28[rbp]
	mov	esi, eax
	call	solve
	add	DWORD PTR -8[rbp], eax
	add	DWORD PTR -4[rbp], 1
.L15:
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, DWORD PTR -24[rbp]
	jle	.L16
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	imul	rdx, rax, 284
	mov	rax, QWORD PTR -40[rbp]
	lea	rcx, [rdx+rax]
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	mov	edx, DWORD PTR -8[rbp]
	mov	DWORD PTR [rcx+rax*4], edx
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	imul	rdx, rax, 284
	mov	rax, QWORD PTR -40[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	mov	eax, DWORD PTR [rdx+rax*4]
.L12:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	solve, .-solve
	.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	"64199947.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%d \000"
	.align	2
.LC1:
	.ascii	"%d %d %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 = 20200
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #19968
	sub	sp, sp, #232
	ldr	r3, .L10
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #19968
	sub	r3, r3, #4
	sub	r3, r3, #228
	mov	r1, r3
	ldr	r0, .L10+4
	bl	__isoc99_scanf
	sub	r3, fp, #16384
	sub	r3, r3, #4
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-3796]
	b	.L2
.L7:
	sub	r3, fp, #16384
	sub	r3, r3, #4
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-3792]
	b	.L3
.L6:
	sub	r3, fp, #16384
	sub	r3, r3, #4
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-3788]
	b	.L4
.L5:
	sub	r3, fp, #16384
	sub	r3, r3, #4
	mov	r1, r3
	sub	r3, fp, #16384
	sub	r3, r3, #4
	ldr	r2, [r3, #-3792]
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	sub	r2, fp, #16384
	sub	r2, r2, #4
	ldr	r2, [r2, #-3788]
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	mvn	r2, #0
	str	r2, [r3, #-3784]
	sub	r3, fp, #16384
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #16384
	sub	r3, r3, #4
	ldr	r3, [r3, #-3788]
	add	r3, r3, #1
	str	r3, [r2, #-3788]
.L4:
	sub	r3, fp, #16384
	sub	r3, r3, #4
	ldr	r3, [r3, #-3788]
	cmp	r3, #70
	ble	.L5
	sub	r3, fp, #16384
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #16384
	sub	r3, r3, #4
	ldr	r3, [r3, #-3792]
	add	r3, r3, #1
	str	r3, [r2, #-3792]
.L3:
	sub	r3, fp, #16384
	sub	r3, r3, #4
	ldr	r3, [r3, #-3792]
	cmp	r3, #70
	ble	.L6
	sub	r3, fp, #19968
	sub	r3, r3, #4
	sub	r3, r3, #224
	sub	r2, fp, #19968
	sub	r2, r2, #4
	sub	r2, r2, #216
	sub	r1, fp, #19968
	sub	r1, r1, #4
	sub	r1, r1, #220
	ldr	r0, .L10+8
	bl	__isoc99_scanf
	sub	r3, fp, #16384
	sub	r3, r3, #4
	ldr	r0, [r3, #-3804]
	sub	r3, fp, #16384
	sub	r3, r3, #4
	ldr	r1, [r3, #-3800]
	sub	r3, fp, #16384
	sub	r3, r3, #4
	ldr	r2, [r3, #-3808]
	sub	r3, fp, #19968
	sub	r3, r3, #4
	sub	r3, r3, #200
	bl	solve
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L10+12
	bl	printf
	sub	r3, fp, #16384
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #16384
	sub	r3, r3, #4
	ldr	r3, [r3, #-3796]
	add	r3, r3, #1
	str	r3, [r2, #-3796]
.L2:
	sub	r3, fp, #16384
	sub	r3, r3, #4
	ldr	r3, [r3, #-3812]
	sub	r2, fp, #16384
	sub	r2, r2, #4
	ldr	r2, [r2, #-3796]
	cmp	r2, r3
	blt	.L7
	mov	r3, #0
	ldr	r2, .L10
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L9
	bl	__stack_chk_fail
.L9:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L11:
	.align	2
.L10:
	.word	.LC3
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.size	main, .-main
	.align	2
	.global	solve
	.syntax unified
	.arm
	.fpu softvfp
	.type	solve, %function
solve:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	str	r3, [fp, #-28]
	ldr	r2, [fp, #-16]
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-28]
	add	r3, r3, r2
	ldr	r2, [fp, #-20]
	ldr	r3, [r3, r2, lsl #2]
	cmn	r3, #1
	beq	.L13
	ldr	r2, [fp, #-16]
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-28]
	add	r3, r3, r2
	ldr	r2, [fp, #-20]
	ldr	r3, [r3, r2, lsl #2]
	b	.L14
.L13:
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L15
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bne	.L15
	ldr	r2, [fp, #-16]
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-28]
	add	r3, r3, r2
	ldr	r2, [fp, #-20]
	mov	r1, #1
	str	r1, [r3, r2, lsl #2]
	ldr	r2, [fp, #-16]
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-28]
	add	r3, r3, r2
	ldr	r2, [fp, #-20]
	ldr	r3, [r3, r2, lsl #2]
	b	.L14
.L15:
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L16
	ldr	r2, [fp, #-16]
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-28]
	add	r3, r3, r2
	ldr	r2, [fp, #-20]
	mov	r1, #0
	str	r1, [r3, r2, lsl #2]
	ldr	r2, [fp, #-16]
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-28]
	add	r3, r3, r2
	ldr	r2, [fp, #-20]
	ldr	r3, [r3, r2, lsl #2]
	b	.L14
.L16:
	mov	r3, #0
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-24]
	str	r3, [fp, #-8]
	b	.L17
.L18:
	ldr	r3, [fp, #-16]
	sub	r0, r3, #1
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-8]
	sub	r1, r2, r3
	ldr	r3, [fp, #-28]
	ldr	r2, [fp, #-24]
	bl	solve
	mov	r2, r0
	ldr	r3, [fp, #-12]
	add	r3, r3, r2
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L17:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	ble	.L18
	ldr	r2, [fp, #-16]
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-28]
	add	r3, r3, r2
	ldr	r2, [fp, #-20]
	ldr	r1, [fp, #-12]
	str	r1, [r3, r2, lsl #2]
	ldr	r2, [fp, #-16]
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-28]
	add	r3, r3, r2
	ldr	r2, [fp, #-20]
	ldr	r3, [r3, r2, lsl #2]
.L14:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	solve, .-solve
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
