	.file	"71459.c"
	.intel_syntax noprefix
	.text
	.globl	in
	.bss
	.align 32
	.type	in, @object
	.size	in, 40400
in:
	.zero	40400
	.globl	po
	.align 32
	.type	po, @object
	.size	po, 40400
po:
	.zero	40400
	.globl	lin
	.align 32
	.type	lin, @object
	.size	lin, 40400
lin:
	.zero	40400
	.globl	lpo
	.align 32
	.type	lpo, @object
	.size	lpo, 40400
lpo:
	.zero	40400
	.globl	p
	.align 32
	.type	p, @object
	.size	p, 40400
p:
	.zero	40400
	.globl	l
	.align 32
	.type	l, @object
	.size	l, 40400
l:
	.zero	40400
	.globl	r
	.align 32
	.type	r, @object
	.size	r, 40400
r:
	.zero	40400
	.globl	g_sum
	.data
	.align 4
	.type	g_sum, @object
	.size	g_sum, 4
g_sum:
	.long	10100
	.globl	g_leaf
	.align 4
	.type	g_leaf, @object
	.size	g_leaf, 4
g_leaf:
	.long	10100
	.text
	.globl	solve
	.type	solve, @function
solve:
.LFB0:
	.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 -36[rbp], edi
	mov	DWORD PTR -40[rbp], esi
	mov	eax, DWORD PTR -40[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, po[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	DWORD PTR -24[rbp], eax
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, po[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	DWORD PTR -20[rbp], eax
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, lin[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	DWORD PTR -16[rbp], eax
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, lin[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	DWORD PTR -12[rbp], eax
	mov	eax, DWORD PTR -40[rbp]
	cmp	eax, DWORD PTR -36[rbp]
	jle	.L10
	mov	eax, DWORD PTR -12[rbp]
	mov	DWORD PTR -32[rbp], eax
	mov	eax, DWORD PTR -36[rbp]
	mov	DWORD PTR -28[rbp], eax
	jmp	.L4
.L6:
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, po[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, lin[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cmp	DWORD PTR -32[rbp], eax
	jle	.L5
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, po[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, lin[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	DWORD PTR -32[rbp], eax
.L5:
	add	DWORD PTR -28[rbp], 1
.L4:
	mov	eax, DWORD PTR -28[rbp]
	cmp	eax, DWORD PTR -40[rbp]
	jle	.L6
	mov	eax, DWORD PTR -16[rbp]
	sub	eax, DWORD PTR -32[rbp]
	mov	DWORD PTR -8[rbp], eax
	mov	eax, DWORD PTR -40[rbp]
	sub	eax, DWORD PTR -36[rbp]
	sub	eax, DWORD PTR -8[rbp]
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -8[rbp], 0
	jle	.L7
	mov	edx, DWORD PTR -36[rbp]
	mov	eax, DWORD PTR -8[rbp]
	add	eax, edx
	sub	eax, 1
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, po[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	edx, DWORD PTR -24[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*4]
	lea	rdx, l[rip]
	mov	DWORD PTR [rcx+rdx], eax
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, l[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rcx, 0[0+rax*4]
	lea	rdx, p[rip]
	mov	eax, DWORD PTR -24[rbp]
	mov	DWORD PTR [rcx+rdx], eax
.L7:
	cmp	DWORD PTR -4[rbp], 0
	jle	.L8
	mov	eax, DWORD PTR -40[rbp]
	sub	eax, 1
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, po[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	edx, DWORD PTR -24[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*4]
	lea	rdx, r[rip]
	mov	DWORD PTR [rcx+rdx], eax
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, r[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rcx, 0[0+rax*4]
	lea	rdx, p[rip]
	mov	eax, DWORD PTR -24[rbp]
	mov	DWORD PTR [rcx+rdx], eax
.L8:
	cmp	DWORD PTR -8[rbp], 0
	jle	.L9
	mov	edx, DWORD PTR -36[rbp]
	mov	eax, DWORD PTR -8[rbp]
	add	eax, edx
	lea	edx, -1[rax]
	mov	eax, DWORD PTR -32[rbp]
	mov	esi, edx
	mov	edi, eax
	call	solve
.L9:
	cmp	DWORD PTR -4[rbp], 0
	jle	.L1
	mov	eax, DWORD PTR -40[rbp]
	lea	edx, -1[rax]
	mov	eax, DWORD PTR -40[rbp]
	sub	eax, DWORD PTR -4[rbp]
	mov	esi, edx
	mov	edi, eax
	call	solve
	jmp	.L1
.L10:
	nop
.L1:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	solve, .-solve
	.section	.rodata
.LC0:
	.string	"%d "
	.text
	.globl	check
	.type	check, @function
check:
.LFB1:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	edi, 32
	call	putchar@PLT
	mov	DWORD PTR -4[rbp], 1
	jmp	.L12
.L13:
	mov	eax, DWORD PTR -4[rbp]
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -4[rbp], 1
.L12:
	cmp	DWORD PTR -4[rbp], 7
	jle	.L13
	mov	edi, 10
	call	putchar@PLT
	mov	edi, 112
	call	putchar@PLT
	mov	DWORD PTR -4[rbp], 1
	jmp	.L14
.L15:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, p[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -4[rbp], 1
.L14:
	cmp	DWORD PTR -4[rbp], 7
	jle	.L15
	mov	edi, 10
	call	putchar@PLT
	mov	edi, 108
	call	putchar@PLT
	mov	DWORD PTR -4[rbp], 1
	jmp	.L16
.L17:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, l[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -4[rbp], 1
.L16:
	cmp	DWORD PTR -4[rbp], 7
	jle	.L17
	mov	edi, 10
	call	putchar@PLT
	mov	edi, 114
	call	putchar@PLT
	mov	DWORD PTR -4[rbp], 1
	jmp	.L18
.L19:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, r[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -4[rbp], 1
.L18:
	cmp	DWORD PTR -4[rbp], 7
	jle	.L19
	mov	edi, 10
	call	putchar@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	check, .-check
	.globl	dfs
	.type	dfs, @function
dfs:
.LFB2:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	DWORD PTR -20[rbp], edi
	mov	DWORD PTR -24[rbp], esi
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, l[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	DWORD PTR -8[rbp], eax
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, r[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -8[rbp], -1
	jne	.L21
	cmp	DWORD PTR -4[rbp], -1
	jne	.L21
	mov	edx, DWORD PTR -24[rbp]
	mov	eax, DWORD PTR -20[rbp]
	add	edx, eax
	mov	eax, DWORD PTR g_sum[rip]
	cmp	edx, eax
	jge	.L22
	mov	edx, DWORD PTR -24[rbp]
	mov	eax, DWORD PTR -20[rbp]
	add	eax, edx
	mov	DWORD PTR g_sum[rip], eax
	mov	eax, DWORD PTR -20[rbp]
	mov	DWORD PTR g_leaf[rip], eax
.L22:
	mov	edx, DWORD PTR -24[rbp]
	mov	eax, DWORD PTR -20[rbp]
	add	edx, eax
	mov	eax, DWORD PTR g_sum[rip]
	cmp	edx, eax
	jne	.L26
	mov	eax, DWORD PTR g_leaf[rip]
	cmp	DWORD PTR -20[rbp], eax
	jge	.L26
	mov	eax, DWORD PTR -20[rbp]
	mov	DWORD PTR g_leaf[rip], eax
	jmp	.L26
.L21:
	cmp	DWORD PTR -8[rbp], -1
	je	.L25
	mov	edx, DWORD PTR -24[rbp]
	mov	eax, DWORD PTR -20[rbp]
	add	edx, eax
	mov	eax, DWORD PTR -8[rbp]
	mov	esi, edx
	mov	edi, eax
	call	dfs
.L25:
	cmp	DWORD PTR -4[rbp], -1
	je	.L20
	mov	edx, DWORD PTR -24[rbp]
	mov	eax, DWORD PTR -20[rbp]
	add	edx, eax
	mov	eax, DWORD PTR -4[rbp]
	mov	esi, edx
	mov	edi, eax
	call	dfs
	jmp	.L20
.L26:
	nop
.L20:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	dfs, .-dfs
	.section	.rodata
.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
	sub	rsp, 32
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	jmp	.L28
.L35:
	mov	DWORD PTR -16[rbp], 0
	mov	DWORD PTR g_sum[rip], 10100
	mov	eax, DWORD PTR g_sum[rip]
	mov	DWORD PTR g_leaf[rip], eax
	mov	eax, DWORD PTR -20[rbp]
	mov	edx, DWORD PTR -16[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*4]
	lea	rdx, in[rip]
	mov	DWORD PTR [rcx+rdx], eax
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rcx, 0[0+rax*4]
	lea	rdx, lin[rip]
	mov	eax, DWORD PTR -16[rbp]
	mov	DWORD PTR [rcx+rdx], eax
	add	DWORD PTR -16[rbp], 1
	call	getchar@PLT
	mov	BYTE PTR -21[rbp], al
	jmp	.L29
.L30:
	lea	rax, -20[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -20[rbp]
	mov	edx, DWORD PTR -16[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*4]
	lea	rdx, in[rip]
	mov	DWORD PTR [rcx+rdx], eax
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rcx, 0[0+rax*4]
	lea	rdx, lin[rip]
	mov	eax, DWORD PTR -16[rbp]
	mov	DWORD PTR [rcx+rdx], eax
	add	DWORD PTR -16[rbp], 1
	call	getchar@PLT
	mov	BYTE PTR -21[rbp], al
.L29:
	cmp	BYTE PTR -21[rbp], 10
	jne	.L30
	lea	rax, -20[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	DWORD PTR -16[rbp], 0
	mov	eax, DWORD PTR -20[rbp]
	mov	edx, DWORD PTR -16[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*4]
	lea	rdx, po[rip]
	mov	DWORD PTR [rcx+rdx], eax
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rcx, 0[0+rax*4]
	lea	rdx, lpo[rip]
	mov	eax, DWORD PTR -16[rbp]
	mov	DWORD PTR [rcx+rdx], eax
	add	DWORD PTR -16[rbp], 1
	call	getchar@PLT
	mov	BYTE PTR -21[rbp], al
	jmp	.L31
.L32:
	lea	rax, -20[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -20[rbp]
	mov	edx, DWORD PTR -16[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*4]
	lea	rdx, po[rip]
	mov	DWORD PTR [rcx+rdx], eax
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rcx, 0[0+rax*4]
	lea	rdx, lpo[rip]
	mov	eax, DWORD PTR -16[rbp]
	mov	DWORD PTR [rcx+rdx], eax
	add	DWORD PTR -16[rbp], 1
	call	getchar@PLT
	mov	BYTE PTR -21[rbp], al
.L31:
	cmp	BYTE PTR -21[rbp], 10
	jne	.L32
	mov	eax, DWORD PTR -16[rbp]
	sub	eax, 1
	mov	DWORD PTR -12[rbp], eax
	mov	DWORD PTR -16[rbp], 0
	jmp	.L33
.L34:
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, r[rip]
	mov	DWORD PTR [rdx+rax], -1
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, r[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	edx, DWORD PTR -16[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*4]
	lea	rdx, l[rip]
	mov	DWORD PTR [rcx+rdx], eax
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, l[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	edx, DWORD PTR -16[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*4]
	lea	rdx, p[rip]
	mov	DWORD PTR [rcx+rdx], eax
	add	DWORD PTR -16[rbp], 1
.L33:
	cmp	DWORD PTR -16[rbp], 10099
	jle	.L34
	mov	eax, DWORD PTR -12[rbp]
	mov	esi, eax
	mov	edi, 0
	call	solve
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, po[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	esi, 0
	mov	edi, eax
	call	dfs
	mov	eax, DWORD PTR g_leaf[rip]
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
.L28:
	lea	rax, -20[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	cmp	eax, -1
	jne	.L35
	mov	eax, 0
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L37
	call	__stack_chk_fail@PLT
.L37:
	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	"71459.c"
	.text
	.comm	in,40400,4
	.comm	po,40400,4
	.comm	lin,40400,4
	.comm	lpo,40400,4
	.comm	p,40400,4
	.comm	l,40400,4
	.comm	r,40400,4
	.global	g_sum
	.data
	.align	2
	.type	g_sum, %object
	.size	g_sum, 4
g_sum:
	.word	10100
	.global	g_leaf
	.align	2
	.type	g_leaf, %object
	.size	g_leaf, 4
g_leaf:
	.word	10100
	.text
	.align	2
	.global	solve
	.syntax unified
	.arm
	.fpu softvfp
	.type	solve, %function
solve:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	str	r0, [fp, #-40]
	str	r1, [fp, #-44]
	ldr	r2, .L11
	ldr	r3, [fp, #-44]
	ldr	r3, [r2, r3, lsl #2]
	str	r3, [fp, #-28]
	ldr	r2, .L11
	ldr	r3, [fp, #-40]
	ldr	r3, [r2, r3, lsl #2]
	str	r3, [fp, #-24]
	ldr	r2, .L11+4
	ldr	r3, [fp, #-28]
	ldr	r3, [r2, r3, lsl #2]
	str	r3, [fp, #-20]
	ldr	r2, .L11+4
	ldr	r3, [fp, #-24]
	ldr	r3, [r2, r3, lsl #2]
	str	r3, [fp, #-16]
	ldr	r2, [fp, #-44]
	ldr	r3, [fp, #-40]
	cmp	r2, r3
	ble	.L10
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-40]
	str	r3, [fp, #-32]
	b	.L4
.L6:
	ldr	r2, .L11
	ldr	r3, [fp, #-32]
	ldr	r3, [r2, r3, lsl #2]
	ldr	r2, .L11+4
	ldr	r3, [r2, r3, lsl #2]
	ldr	r2, [fp, #-36]
	cmp	r2, r3
	ble	.L5
	ldr	r2, .L11
	ldr	r3, [fp, #-32]
	ldr	r3, [r2, r3, lsl #2]
	ldr	r2, .L11+4
	ldr	r3, [r2, r3, lsl #2]
	str	r3, [fp, #-36]
.L5:
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
.L4:
	ldr	r2, [fp, #-32]
	ldr	r3, [fp, #-44]
	cmp	r2, r3
	ble	.L6
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-36]
	sub	r3, r2, r3
	str	r3, [fp, #-12]
	ldr	r2, [fp, #-44]
	ldr	r3, [fp, #-40]
	sub	r2, r2, r3
	ldr	r3, [fp, #-12]
	sub	r3, r2, r3
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	ble	.L7
	ldr	r2, [fp, #-40]
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	sub	r3, r3, #1
	ldr	r2, .L11
	ldr	r2, [r2, r3, lsl #2]
	ldr	r1, .L11+8
	ldr	r3, [fp, #-28]
	str	r2, [r1, r3, lsl #2]
	ldr	r2, .L11+8
	ldr	r3, [fp, #-28]
	ldr	r3, [r2, r3, lsl #2]
	ldr	r1, .L11+12
	ldr	r2, [fp, #-28]
	str	r2, [r1, r3, lsl #2]
.L7:
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	ble	.L8
	ldr	r3, [fp, #-44]
	sub	r3, r3, #1
	ldr	r2, .L11
	ldr	r2, [r2, r3, lsl #2]
	ldr	r1, .L11+16
	ldr	r3, [fp, #-28]
	str	r2, [r1, r3, lsl #2]
	ldr	r2, .L11+16
	ldr	r3, [fp, #-28]
	ldr	r3, [r2, r3, lsl #2]
	ldr	r1, .L11+12
	ldr	r2, [fp, #-28]
	str	r2, [r1, r3, lsl #2]
.L8:
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	ble	.L9
	ldr	r2, [fp, #-40]
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	sub	r3, r3, #1
	mov	r1, r3
	ldr	r0, [fp, #-36]
	bl	solve
.L9:
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	ble	.L1
	ldr	r2, [fp, #-44]
	ldr	r3, [fp, #-8]
	sub	r2, r2, r3
	ldr	r3, [fp, #-44]
	sub	r3, r3, #1
	mov	r1, r3
	mov	r0, r2
	bl	solve
	b	.L1
.L10:
	nop
.L1:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L12:
	.align	2
.L11:
	.word	po
	.word	lin
	.word	l
	.word	p
	.word	r
	.size	solve, .-solve
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%d \000"
	.text
	.align	2
	.global	check
	.syntax unified
	.arm
	.fpu softvfp
	.type	check, %function
check:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	mov	r0, #32
	bl	putchar
	mov	r3, #1
	str	r3, [fp, #-8]
	b	.L14
.L15:
	ldr	r1, [fp, #-8]
	ldr	r0, .L22
	bl	printf
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L14:
	ldr	r3, [fp, #-8]
	cmp	r3, #7
	ble	.L15
	mov	r0, #10
	bl	putchar
	mov	r0, #112
	bl	putchar
	mov	r3, #1
	str	r3, [fp, #-8]
	b	.L16
.L17:
	ldr	r2, .L22+4
	ldr	r3, [fp, #-8]
	ldr	r3, [r2, r3, lsl #2]
	mov	r1, r3
	ldr	r0, .L22
	bl	printf
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L16:
	ldr	r3, [fp, #-8]
	cmp	r3, #7
	ble	.L17
	mov	r0, #10
	bl	putchar
	mov	r0, #108
	bl	putchar
	mov	r3, #1
	str	r3, [fp, #-8]
	b	.L18
.L19:
	ldr	r2, .L22+8
	ldr	r3, [fp, #-8]
	ldr	r3, [r2, r3, lsl #2]
	mov	r1, r3
	ldr	r0, .L22
	bl	printf
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L18:
	ldr	r3, [fp, #-8]
	cmp	r3, #7
	ble	.L19
	mov	r0, #10
	bl	putchar
	mov	r0, #114
	bl	putchar
	mov	r3, #1
	str	r3, [fp, #-8]
	b	.L20
.L21:
	ldr	r2, .L22+12
	ldr	r3, [fp, #-8]
	ldr	r3, [r2, r3, lsl #2]
	mov	r1, r3
	ldr	r0, .L22
	bl	printf
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L20:
	ldr	r3, [fp, #-8]
	cmp	r3, #7
	ble	.L21
	mov	r0, #10
	bl	putchar
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L23:
	.align	2
.L22:
	.word	.LC0
	.word	p
	.word	l
	.word	r
	.size	check, .-check
	.align	2
	.global	dfs
	.syntax unified
	.arm
	.fpu softvfp
	.type	dfs, %function
dfs:
	@ 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]
	ldr	r2, .L31
	ldr	r3, [fp, #-16]
	ldr	r3, [r2, r3, lsl #2]
	str	r3, [fp, #-12]
	ldr	r2, .L31+4
	ldr	r3, [fp, #-16]
	ldr	r3, [r2, r3, lsl #2]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-12]
	cmn	r3, #1
	bne	.L25
	ldr	r3, [fp, #-8]
	cmn	r3, #1
	bne	.L25
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-16]
	add	r2, r2, r3
	ldr	r3, .L31+8
	ldr	r3, [r3]
	cmp	r2, r3
	bge	.L26
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-16]
	add	r3, r2, r3
	ldr	r2, .L31+8
	str	r3, [r2]
	ldr	r2, .L31+12
	ldr	r3, [fp, #-16]
	str	r3, [r2]
.L26:
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-16]
	add	r2, r2, r3
	ldr	r3, .L31+8
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L30
	ldr	r3, .L31+12
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	bge	.L30
	ldr	r2, .L31+12
	ldr	r3, [fp, #-16]
	str	r3, [r2]
	b	.L30
.L25:
	ldr	r3, [fp, #-12]
	cmn	r3, #1
	beq	.L29
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-16]
	add	r3, r2, r3
	mov	r1, r3
	ldr	r0, [fp, #-12]
	bl	dfs
.L29:
	ldr	r3, [fp, #-8]
	cmn	r3, #1
	beq	.L24
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-16]
	add	r3, r2, r3
	mov	r1, r3
	ldr	r0, [fp, #-8]
	bl	dfs
	b	.L24
.L30:
	nop
.L24:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L32:
	.align	2
.L31:
	.word	l
	.word	r
	.word	g_sum
	.word	g_leaf
	.size	dfs, .-dfs
	.section	.rodata
	.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 = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	ldr	r3, .L44
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	b	.L34
.L41:
	mov	r3, #0
	str	r3, [fp, #-16]
	ldr	r3, .L44+4
	ldr	r2, .L44+8
	str	r2, [r3]
	ldr	r3, .L44+4
	ldr	r3, [r3]
	ldr	r2, .L44+12
	str	r3, [r2]
	ldr	r2, [fp, #-20]
	ldr	r1, .L44+16
	ldr	r3, [fp, #-16]
	str	r2, [r1, r3, lsl #2]
	ldr	r3, [fp, #-20]
	ldr	r1, .L44+20
	ldr	r2, [fp, #-16]
	str	r2, [r1, r3, lsl #2]
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
	bl	getchar
	mov	r3, r0
	strb	r3, [fp, #-21]
	b	.L35
.L36:
	sub	r3, fp, #20
	mov	r1, r3
	ldr	r0, .L44+24
	bl	__isoc99_scanf
	ldr	r2, [fp, #-20]
	ldr	r1, .L44+16
	ldr	r3, [fp, #-16]
	str	r2, [r1, r3, lsl #2]
	ldr	r3, [fp, #-20]
	ldr	r1, .L44+20
	ldr	r2, [fp, #-16]
	str	r2, [r1, r3, lsl #2]
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
	bl	getchar
	mov	r3, r0
	strb	r3, [fp, #-21]
.L35:
	ldrb	r3, [fp, #-21]	@ zero_extendqisi2
	cmp	r3, #10
	bne	.L36
	sub	r3, fp, #20
	mov	r1, r3
	ldr	r0, .L44+24
	bl	__isoc99_scanf
	mov	r3, #0
	str	r3, [fp, #-16]
	ldr	r2, [fp, #-20]
	ldr	r1, .L44+28
	ldr	r3, [fp, #-16]
	str	r2, [r1, r3, lsl #2]
	ldr	r3, [fp, #-20]
	ldr	r1, .L44+32
	ldr	r2, [fp, #-16]
	str	r2, [r1, r3, lsl #2]
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
	bl	getchar
	mov	r3, r0
	strb	r3, [fp, #-21]
	b	.L37
.L38:
	sub	r3, fp, #20
	mov	r1, r3
	ldr	r0, .L44+24
	bl	__isoc99_scanf
	ldr	r2, [fp, #-20]
	ldr	r1, .L44+28
	ldr	r3, [fp, #-16]
	str	r2, [r1, r3, lsl #2]
	ldr	r3, [fp, #-20]
	ldr	r1, .L44+32
	ldr	r2, [fp, #-16]
	str	r2, [r1, r3, lsl #2]
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
	bl	getchar
	mov	r3, r0
	strb	r3, [fp, #-21]
.L37:
	ldrb	r3, [fp, #-21]	@ zero_extendqisi2
	cmp	r3, #10
	bne	.L38
	ldr	r3, [fp, #-16]
	sub	r3, r3, #1
	str	r3, [fp, #-12]
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L39
.L40:
	ldr	r2, .L44+36
	ldr	r3, [fp, #-16]
	mvn	r1, #0
	str	r1, [r2, r3, lsl #2]
	ldr	r2, .L44+36
	ldr	r3, [fp, #-16]
	ldr	r2, [r2, r3, lsl #2]
	ldr	r1, .L44+40
	ldr	r3, [fp, #-16]
	str	r2, [r1, r3, lsl #2]
	ldr	r2, .L44+40
	ldr	r3, [fp, #-16]
	ldr	r2, [r2, r3, lsl #2]
	ldr	r1, .L44+44
	ldr	r3, [fp, #-16]
	str	r2, [r1, r3, lsl #2]
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L39:
	ldr	r3, [fp, #-16]
	ldr	r2, .L44+48
	cmp	r3, r2
	ble	.L40
	ldr	r1, [fp, #-12]
	mov	r0, #0
	bl	solve
	ldr	r2, .L44+28
	ldr	r3, [fp, #-12]
	ldr	r3, [r2, r3, lsl #2]
	mov	r1, #0
	mov	r0, r3
	bl	dfs
	ldr	r3, .L44+12
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L44+52
	bl	printf
.L34:
	sub	r3, fp, #20
	mov	r1, r3
	ldr	r0, .L44+24
	bl	__isoc99_scanf
	mov	r3, r0
	cmn	r3, #1
	bne	.L41
	mov	r3, #0
	ldr	r2, .L44
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L43
	bl	__stack_chk_fail
.L43:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L45:
	.align	2
.L44:
	.word	.LC3
	.word	g_sum
	.word	10100
	.word	g_leaf
	.word	in
	.word	lin
	.word	.LC1
	.word	po
	.word	lpo
	.word	r
	.word	l
	.word	p
	.word	10099
	.word	.LC2
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
