	.file	"774081.c"
	.intel_syntax noprefix
	.text
	.globl	P
	.bss
	.align 32
	.type	P, @object
	.size	P, 61602784
P:
	.zero	61602784
	.text
	.globl	p_cmp
	.type	p_cmp, @function
p_cmp:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	edx, eax
	jge	.L2
	mov	eax, -1
	jmp	.L4
.L2:
	mov	eax, 1
.L4:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	p_cmp, .-p_cmp
	.globl	p_bld_r
	.type	p_bld_r, @function
p_bld_r:
.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, 32
	mov	DWORD PTR -20[rbp], edi
	mov	DWORD PTR -24[rbp], esi
	lea	rax, P[rip]
	mov	eax, DWORD PTR 60002700[rax]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	lea	rax, P[rip+4]
	mov	DWORD PTR [rdx+rax], -1
	lea	rax, P[rip]
	mov	eax, DWORD PTR 60002700[rax]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	lea	rax, P[rip+8]
	mov	DWORD PTR [rdx+rax], -1
	lea	rax, P[rip]
	mov	eax, DWORD PTR 60002700[rax]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	lea	rax, P[rip]
	mov	DWORD PTR [rdx+rax], 0
	lea	rax, P[rip]
	mov	eax, DWORD PTR 60002700[rax]
	lea	edx, 1[rax]
	lea	rcx, P[rip]
	mov	DWORD PTR 60002700[rcx], edx
	mov	DWORD PTR -8[rbp], eax
	mov	eax, DWORD PTR -24[rbp]
	sub	eax, DWORD PTR -20[rbp]
	cmp	eax, 1
	jne	.L6
	mov	eax, DWORD PTR -8[rbp]
	jmp	.L7
.L6:
	mov	eax, DWORD PTR -24[rbp]
	sub	eax, DWORD PTR -20[rbp]
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	mov	edx, eax
	mov	eax, DWORD PTR -20[rbp]
	add	eax, edx
	mov	DWORD PTR -4[rbp], eax
	mov	edx, DWORD PTR -4[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	esi, edx
	mov	edi, eax
	call	p_bld_r
	mov	edx, eax
	mov	eax, DWORD PTR -8[rbp]
	movsx	rcx, eax
	mov	rax, rcx
	add	rax, rax
	add	rax, rcx
	sal	rax, 2
	mov	rcx, rax
	lea	rax, P[rip+4]
	mov	DWORD PTR [rcx+rax], edx
	mov	edx, DWORD PTR -24[rbp]
	mov	eax, DWORD PTR -4[rbp]
	mov	esi, edx
	mov	edi, eax
	call	p_bld_r
	mov	edx, eax
	mov	eax, DWORD PTR -8[rbp]
	movsx	rcx, eax
	mov	rax, rcx
	add	rax, rax
	add	rax, rcx
	sal	rax, 2
	mov	rcx, rax
	lea	rax, P[rip+8]
	mov	DWORD PTR [rcx+rax], edx
	mov	eax, DWORD PTR -8[rbp]
.L7:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	p_bld_r, .-p_bld_r
	.globl	p_apd_r
	.type	p_apd_r, @function
p_apd_r:
.LFB8:
	.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	DWORD PTR -28[rbp], edx
	mov	DWORD PTR -32[rbp], ecx
	lea	rax, P[rip]
	mov	eax, DWORD PTR 60002700[rax]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	lea	rax, P[rip+4]
	mov	DWORD PTR [rdx+rax], -1
	lea	rax, P[rip]
	mov	eax, DWORD PTR 60002700[rax]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	lea	rax, P[rip+8]
	mov	DWORD PTR [rdx+rax], -1
	lea	rax, P[rip]
	mov	eax, DWORD PTR 60002700[rax]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	lea	rax, P[rip]
	mov	DWORD PTR [rdx+rax], 0
	lea	rax, P[rip]
	mov	eax, DWORD PTR 60002700[rax]
	lea	edx, 1[rax]
	lea	rcx, P[rip]
	mov	DWORD PTR 60002700[rcx], edx
	mov	DWORD PTR -8[rbp], eax
	mov	eax, DWORD PTR -20[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	lea	rax, P[rip+4]
	mov	edx, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -8[rbp]
	movsx	rcx, eax
	mov	rax, rcx
	add	rax, rax
	add	rax, rcx
	sal	rax, 2
	mov	rcx, rax
	lea	rax, P[rip+4]
	mov	DWORD PTR [rcx+rax], edx
	mov	eax, DWORD PTR -20[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	lea	rax, P[rip+8]
	mov	edx, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -8[rbp]
	movsx	rcx, eax
	mov	rax, rcx
	add	rax, rax
	add	rax, rcx
	sal	rax, 2
	mov	rcx, rax
	lea	rax, P[rip+8]
	mov	DWORD PTR [rcx+rax], edx
	mov	eax, DWORD PTR -20[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	lea	rax, P[rip]
	mov	eax, DWORD PTR [rdx+rax]
	lea	ecx, 1[rax]
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	lea	rax, P[rip]
	mov	DWORD PTR [rdx+rax], ecx
	mov	eax, DWORD PTR -28[rbp]
	sub	eax, DWORD PTR -24[rbp]
	cmp	eax, 1
	jne	.L9
	mov	eax, DWORD PTR -8[rbp]
	jmp	.L10
.L9:
	mov	eax, DWORD PTR -28[rbp]
	sub	eax, DWORD PTR -24[rbp]
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	mov	edx, eax
	mov	eax, DWORD PTR -24[rbp]
	add	eax, edx
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -32[rbp]
	cmp	eax, DWORD PTR -4[rbp]
	jge	.L11
	mov	eax, DWORD PTR -20[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	lea	rax, P[rip+4]
	mov	eax, DWORD PTR [rdx+rax]
	mov	ecx, DWORD PTR -32[rbp]
	mov	edx, DWORD PTR -4[rbp]
	mov	esi, DWORD PTR -24[rbp]
	mov	edi, eax
	call	p_apd_r
	mov	edx, eax
	mov	eax, DWORD PTR -8[rbp]
	movsx	rcx, eax
	mov	rax, rcx
	add	rax, rax
	add	rax, rcx
	sal	rax, 2
	mov	rcx, rax
	lea	rax, P[rip+4]
	mov	DWORD PTR [rcx+rax], edx
	jmp	.L12
.L11:
	mov	eax, DWORD PTR -20[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	lea	rax, P[rip+8]
	mov	eax, DWORD PTR [rdx+rax]
	mov	ecx, DWORD PTR -32[rbp]
	mov	edx, DWORD PTR -28[rbp]
	mov	esi, DWORD PTR -4[rbp]
	mov	edi, eax
	call	p_apd_r
	mov	edx, eax
	mov	eax, DWORD PTR -8[rbp]
	movsx	rcx, eax
	mov	rax, rcx
	add	rax, rax
	add	rax, rcx
	sal	rax, 2
	mov	rcx, rax
	lea	rax, P[rip+8]
	mov	DWORD PTR [rcx+rax], edx
.L12:
	mov	eax, DWORD PTR -8[rbp]
.L10:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	p_apd_r, .-p_apd_r
	.globl	p_qry_r
	.type	p_qry_r, @function
p_qry_r:
.LFB9:
	.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	DWORD PTR -32[rbp], ecx
	mov	DWORD PTR -36[rbp], r8d
	mov	eax, DWORD PTR -24[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	lea	rax, P[rip+4]
	mov	eax, DWORD PTR [rdx+rax]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	lea	rax, P[rip]
	mov	ecx, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -20[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	lea	rax, P[rip+4]
	mov	eax, DWORD PTR [rdx+rax]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	lea	rax, P[rip]
	mov	edx, DWORD PTR [rdx+rax]
	mov	eax, ecx
	sub	eax, edx
	mov	DWORD PTR -8[rbp], eax
	mov	eax, DWORD PTR -32[rbp]
	sub	eax, DWORD PTR -28[rbp]
	cmp	eax, 1
	jne	.L14
	mov	eax, DWORD PTR -28[rbp]
	jmp	.L15
.L14:
	mov	eax, DWORD PTR -32[rbp]
	sub	eax, DWORD PTR -28[rbp]
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	mov	edx, eax
	mov	eax, DWORD PTR -28[rbp]
	add	eax, edx
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -8[rbp]
	cmp	eax, DWORD PTR -36[rbp]
	jge	.L16
	mov	eax, DWORD PTR -36[rbp]
	sub	eax, DWORD PTR -8[rbp]
	mov	edi, eax
	mov	eax, DWORD PTR -24[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	lea	rax, P[rip+8]
	mov	esi, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -20[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	lea	rax, P[rip+8]
	mov	eax, DWORD PTR [rdx+rax]
	mov	ecx, DWORD PTR -32[rbp]
	mov	edx, DWORD PTR -4[rbp]
	mov	r8d, edi
	mov	edi, eax
	call	p_qry_r
	jmp	.L15
.L16:
	mov	eax, DWORD PTR -24[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	lea	rax, P[rip+4]
	mov	esi, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -20[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	lea	rax, P[rip+4]
	mov	eax, DWORD PTR [rdx+rax]
	mov	edi, DWORD PTR -36[rbp]
	mov	ecx, DWORD PTR -4[rbp]
	mov	edx, DWORD PTR -28[rbp]
	mov	r8d, edi
	mov	edi, eax
	call	p_qry_r
.L15:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	p_qry_r, .-p_qry_r
	.section	.rodata
.LC0:
	.string	"%d%d"
.LC1:
	.string	"%d"
.LC2:
	.string	"%d%d%d"
.LC3:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB10:
	.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, 88
	.cfi_offset 3, -24
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -68[rbp], 0
	lea	rdx, -84[rbp]
	lea	rax, -88[rbp]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	DWORD PTR -64[rbp], 0
	jmp	.L18
.L19:
	mov	eax, DWORD PTR -64[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, val.0[rip]
	add	rax, rdx
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	add	DWORD PTR -64[rbp], 1
.L18:
	mov	eax, DWORD PTR -88[rbp]
	cmp	DWORD PTR -64[rbp], eax
	jl	.L19
	lea	rax, P[rip]
	mov	DWORD PTR 60002700[rax], 0
	lea	rax, P[rip]
	mov	DWORD PTR 60802740[rax], 1
	mov	eax, DWORD PTR -88[rbp]
	lea	rdx, P[rip]
	mov	DWORD PTR 60802744[rdx], eax
	mov	eax, DWORD PTR -88[rbp]
	cdqe
	sal	rax, 2
	mov	rdx, rax
	lea	rsi, val.0[rip]
	lea	rax, P[rip]
	lea	rdi, 60802748[rax]
	call	memcpy@PLT
	mov	eax, DWORD PTR -88[rbp]
	cdqe
	lea	rcx, p_cmp[rip]
	mov	edx, 4
	mov	rsi, rax
	lea	rax, P[rip]
	lea	rdi, 60802748[rax]
	call	qsort@PLT
	mov	DWORD PTR -60[rbp], 0
	mov	DWORD PTR -56[rbp], 0
	jmp	.L20
.L23:
	add	DWORD PTR -56[rbp], 1
.L21:
	lea	rax, P[rip]
	mov	eax, DWORD PTR 60802744[rax]
	cmp	DWORD PTR -56[rbp], eax
	jge	.L22
	mov	eax, DWORD PTR -56[rbp]
	cdqe
	add	rax, 15200684
	lea	rdx, 0[0+rax*4]
	lea	rax, P[rip+12]
	mov	edx, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -60[rbp]
	cdqe
	add	rax, 15200684
	lea	rcx, 0[0+rax*4]
	lea	rax, P[rip+12]
	mov	eax, DWORD PTR [rcx+rax]
	cmp	edx, eax
	je	.L23
.L22:
	mov	eax, DWORD PTR -56[rbp]
	lea	ecx, -1[rax]
	mov	eax, DWORD PTR -60[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -60[rbp], edx
	movsx	rdx, ecx
	add	rdx, 15200684
	lea	rcx, 0[0+rdx*4]
	lea	rdx, P[rip+12]
	mov	edx, DWORD PTR [rcx+rdx]
	cdqe
	add	rax, 15200684
	lea	rcx, 0[0+rax*4]
	lea	rax, P[rip+12]
	mov	DWORD PTR [rcx+rax], edx
.L20:
	lea	rax, P[rip]
	mov	eax, DWORD PTR 60802744[rax]
	cmp	DWORD PTR -60[rbp], eax
	jl	.L21
	lea	rdx, P[rip]
	mov	eax, DWORD PTR -60[rbp]
	mov	DWORD PTR 60802744[rdx], eax
	lea	rax, P[rip]
	mov	eax, DWORD PTR 60802744[rax]
	mov	esi, eax
	mov	edi, 0
	call	p_bld_r
	lea	rdx, P[rip]
	mov	DWORD PTR 60002704[rdx], eax
	mov	DWORD PTR -64[rbp], 0
	jmp	.L25
.L29:
	mov	DWORD PTR -52[rbp], 0
	lea	rax, P[rip]
	mov	eax, DWORD PTR 60802744[rax]
	mov	DWORD PTR -48[rbp], eax
	jmp	.L26
.L28:
	mov	eax, DWORD PTR -48[rbp]
	sub	eax, DWORD PTR -52[rbp]
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	mov	edx, eax
	mov	eax, DWORD PTR -52[rbp]
	add	eax, edx
	mov	DWORD PTR -28[rbp], eax
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	add	rax, 15200684
	lea	rdx, 0[0+rax*4]
	lea	rax, P[rip+12]
	mov	edx, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -64[rbp]
	cdqe
	lea	rcx, 0[0+rax*4]
	lea	rax, val.0[rip]
	mov	eax, DWORD PTR [rcx+rax]
	cmp	edx, eax
	jge	.L27
	mov	eax, DWORD PTR -28[rbp]
	add	eax, 1
	mov	DWORD PTR -52[rbp], eax
	jmp	.L26
.L27:
	mov	eax, DWORD PTR -28[rbp]
	mov	DWORD PTR -48[rbp], eax
.L26:
	mov	eax, DWORD PTR -52[rbp]
	cmp	eax, DWORD PTR -48[rbp]
	jl	.L28
	mov	eax, DWORD PTR -52[rbp]
	mov	DWORD PTR -32[rbp], eax
	mov	edx, DWORD PTR -88[rbp]
	lea	rax, P[rip]
	mov	eax, DWORD PTR 60802740[rax]
	sub	eax, 1
	cdqe
	add	rax, 15000676
	lea	rcx, 0[0+rax*4]
	lea	rax, P[rip]
	mov	eax, DWORD PTR [rcx+rax]
	lea	rcx, P[rip]
	mov	ebx, DWORD PTR 60802740[rcx]
	mov	ecx, DWORD PTR -32[rbp]
	mov	esi, 0
	mov	edi, eax
	call	p_apd_r
	movsx	rdx, ebx
	add	rdx, 15000676
	lea	rcx, 0[0+rdx*4]
	lea	rdx, P[rip]
	mov	DWORD PTR [rcx+rdx], eax
	lea	rax, P[rip]
	mov	eax, DWORD PTR 60802740[rax]
	lea	edx, 1[rax]
	lea	rax, P[rip]
	mov	DWORD PTR 60802740[rax], edx
	add	DWORD PTR -64[rbp], 1
.L25:
	mov	eax, DWORD PTR -88[rbp]
	cmp	DWORD PTR -64[rbp], eax
	jl	.L29
	jmp	.L30
.L32:
	lea	rcx, -72[rbp]
	lea	rdx, -76[rbp]
	lea	rax, -80[rbp]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -80[rbp]
	xor	eax, DWORD PTR -68[rbp]
	mov	ecx, DWORD PTR -88[rbp]
	cdq
	idiv	ecx
	mov	eax, edx
	add	eax, 1
	mov	DWORD PTR -80[rbp], eax
	mov	eax, DWORD PTR -76[rbp]
	xor	eax, DWORD PTR -68[rbp]
	mov	ecx, DWORD PTR -88[rbp]
	cdq
	idiv	ecx
	mov	eax, edx
	add	eax, 1
	mov	DWORD PTR -76[rbp], eax
	mov	edx, DWORD PTR -80[rbp]
	mov	eax, DWORD PTR -76[rbp]
	cmp	edx, eax
	jle	.L31
	mov	eax, DWORD PTR -80[rbp]
	mov	DWORD PTR -44[rbp], eax
	mov	eax, DWORD PTR -76[rbp]
	mov	DWORD PTR -80[rbp], eax
	mov	eax, DWORD PTR -44[rbp]
	mov	DWORD PTR -76[rbp], eax
.L31:
	mov	eax, DWORD PTR -72[rbp]
	xor	eax, DWORD PTR -68[rbp]
	mov	edx, DWORD PTR -76[rbp]
	mov	ecx, DWORD PTR -80[rbp]
	sub	edx, ecx
	lea	ecx, 1[rdx]
	cdq
	idiv	ecx
	mov	eax, edx
	add	eax, 1
	mov	DWORD PTR -72[rbp], eax
	mov	edi, DWORD PTR -72[rbp]
	lea	rax, P[rip]
	mov	edx, DWORD PTR 60802744[rax]
	mov	eax, DWORD PTR -76[rbp]
	cdqe
	add	rax, 15000676
	lea	rcx, 0[0+rax*4]
	lea	rax, P[rip]
	mov	esi, DWORD PTR [rcx+rax]
	mov	eax, DWORD PTR -80[rbp]
	sub	eax, 1
	cdqe
	add	rax, 15000676
	lea	rcx, 0[0+rax*4]
	lea	rax, P[rip]
	mov	eax, DWORD PTR [rcx+rax]
	mov	r8d, edi
	mov	ecx, edx
	mov	edx, 0
	mov	edi, eax
	call	p_qry_r
	mov	DWORD PTR -40[rbp], eax
	mov	eax, DWORD PTR -40[rbp]
	cdqe
	add	rax, 15200684
	lea	rdx, 0[0+rax*4]
	lea	rax, P[rip+12]
	mov	eax, DWORD PTR [rdx+rax]
	mov	DWORD PTR -36[rbp], eax
	mov	eax, DWORD PTR -36[rbp]
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -36[rbp]
	mov	DWORD PTR -68[rbp], eax
.L30:
	mov	eax, DWORD PTR -84[rbp]
	lea	edx, -1[rax]
	mov	DWORD PTR -84[rbp], edx
	test	eax, eax
	jne	.L32
	mov	eax, 0
	mov	rbx, QWORD PTR -24[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L34
	call	__stack_chk_fail@PLT
.L34:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	main, .-main
	.local	val.0
	.comm	val.0,800036,32
	.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	"774081.c"
	.text
	.comm	P,61602784,4
	.align	2
	.global	p_cmp
	.syntax unified
	.arm
	.fpu softvfp
	.type	p_cmp, %function
p_cmp:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r3, [fp, #-8]
	ldr	r2, [r3]
	ldr	r3, [fp, #-12]
	ldr	r3, [r3]
	cmp	r2, r3
	bge	.L2
	mvn	r3, #0
	b	.L4
.L2:
	mov	r3, #1
.L4:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	p_cmp, .-p_cmp
	.align	2
	.global	p_bld_r
	.syntax unified
	.arm
	.fpu softvfp
	.type	p_bld_r, %function
p_bld_r:
	@ 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	r3, .L8
	add	r3, r3, #59768832
	add	r3, r3, #233472
	ldr	r2, [r3, #396]
	ldr	r1, .L8
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	add	r3, r3, #4
	mvn	r2, #0
	str	r2, [r3]
	ldr	r3, .L8
	add	r3, r3, #59768832
	add	r3, r3, #233472
	ldr	r2, [r3, #396]
	ldr	r1, .L8
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	add	r3, r3, #8
	mvn	r2, #0
	str	r2, [r3]
	ldr	r3, .L8
	add	r3, r3, #59768832
	add	r3, r3, #233472
	ldr	r2, [r3, #396]
	ldr	r1, .L8
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L8
	add	r3, r3, #59768832
	add	r3, r3, #233472
	ldr	r2, [r3, #396]
	add	r1, r2, #1
	ldr	r3, .L8
	add	r3, r3, #59768832
	add	r3, r3, #233472
	str	r1, [r3, #396]
	str	r2, [fp, #-12]
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-16]
	sub	r3, r2, r3
	cmp	r3, #1
	bne	.L6
	ldr	r3, [fp, #-12]
	b	.L7
.L6:
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-16]
	sub	r3, r2, r3
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	mov	r2, r3
	ldr	r3, [fp, #-16]
	add	r3, r3, r2
	str	r3, [fp, #-8]
	ldr	r1, [fp, #-8]
	ldr	r0, [fp, #-16]
	bl	p_bld_r
	mov	r1, r0
	ldr	r0, .L8
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r0, r3
	add	r3, r3, #4
	str	r1, [r3]
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-8]
	bl	p_bld_r
	mov	r1, r0
	ldr	r0, .L8
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r0, r3
	add	r3, r3, #8
	str	r1, [r3]
	ldr	r3, [fp, #-12]
.L7:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L9:
	.align	2
.L8:
	.word	P
	.size	p_bld_r, .-p_bld_r
	.align	2
	.global	p_apd_r
	.syntax unified
	.arm
	.fpu softvfp
	.type	p_apd_r, %function
p_apd_r:
	@ 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	r3, .L15
	add	r3, r3, #59768832
	add	r3, r3, #233472
	ldr	r2, [r3, #396]
	ldr	r1, .L15
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	add	r3, r3, #4
	mvn	r2, #0
	str	r2, [r3]
	ldr	r3, .L15
	add	r3, r3, #59768832
	add	r3, r3, #233472
	ldr	r2, [r3, #396]
	ldr	r1, .L15
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	add	r3, r3, #8
	mvn	r2, #0
	str	r2, [r3]
	ldr	r3, .L15
	add	r3, r3, #59768832
	add	r3, r3, #233472
	ldr	r2, [r3, #396]
	ldr	r1, .L15
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L15
	add	r3, r3, #59768832
	add	r3, r3, #233472
	ldr	r2, [r3, #396]
	add	r1, r2, #1
	ldr	r3, .L15
	add	r3, r3, #59768832
	add	r3, r3, #233472
	str	r1, [r3, #396]
	str	r2, [fp, #-12]
	ldr	r1, .L15
	ldr	r2, [fp, #-16]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	add	r3, r3, #4
	ldr	r1, [r3]
	ldr	r0, .L15
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r0, r3
	add	r3, r3, #4
	str	r1, [r3]
	ldr	r1, .L15
	ldr	r2, [fp, #-16]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	add	r3, r3, #8
	ldr	r1, [r3]
	ldr	r0, .L15
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r0, r3
	add	r3, r3, #8
	str	r1, [r3]
	ldr	r1, .L15
	ldr	r2, [fp, #-16]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r3, [r3]
	add	r1, r3, #1
	ldr	r0, .L15
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r0, r3
	str	r1, [r3]
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-20]
	sub	r3, r2, r3
	cmp	r3, #1
	bne	.L11
	ldr	r3, [fp, #-12]
	b	.L12
.L11:
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-20]
	sub	r3, r2, r3
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	mov	r2, r3
	ldr	r3, [fp, #-20]
	add	r3, r3, r2
	str	r3, [fp, #-8]
	ldr	r2, [fp, #-28]
	ldr	r3, [fp, #-8]
	cmp	r2, r3
	bge	.L13
	ldr	r1, .L15
	ldr	r2, [fp, #-16]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	add	r3, r3, #4
	ldr	r0, [r3]
	ldr	r3, [fp, #-28]
	ldr	r2, [fp, #-8]
	ldr	r1, [fp, #-20]
	bl	p_apd_r
	mov	r1, r0
	ldr	r0, .L15
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r0, r3
	add	r3, r3, #4
	str	r1, [r3]
	b	.L14
.L13:
	ldr	r1, .L15
	ldr	r2, [fp, #-16]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	add	r3, r3, #8
	ldr	r0, [r3]
	ldr	r3, [fp, #-28]
	ldr	r2, [fp, #-24]
	ldr	r1, [fp, #-8]
	bl	p_apd_r
	mov	r1, r0
	ldr	r0, .L15
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r0, r3
	add	r3, r3, #8
	str	r1, [r3]
.L14:
	ldr	r3, [fp, #-12]
.L12:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L16:
	.align	2
.L15:
	.word	P
	.size	p_apd_r, .-p_apd_r
	.align	2
	.global	p_qry_r
	.syntax unified
	.arm
	.fpu softvfp
	.type	p_qry_r, %function
p_qry_r:
	@ args = 4, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	str	r3, [fp, #-28]
	ldr	r1, .L21
	ldr	r2, [fp, #-20]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	add	r3, r3, #4
	ldr	r2, [r3]
	ldr	r1, .L21
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r1, [r3]
	ldr	r0, .L21
	ldr	r2, [fp, #-16]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r0, r3
	add	r3, r3, #4
	ldr	r2, [r3]
	ldr	r0, .L21
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r0, r3
	ldr	r3, [r3]
	sub	r3, r1, r3
	str	r3, [fp, #-12]
	ldr	r2, [fp, #-28]
	ldr	r3, [fp, #-24]
	sub	r3, r2, r3
	cmp	r3, #1
	bne	.L18
	ldr	r3, [fp, #-24]
	b	.L19
.L18:
	ldr	r2, [fp, #-28]
	ldr	r3, [fp, #-24]
	sub	r3, r2, r3
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	mov	r2, r3
	ldr	r3, [fp, #-24]
	add	r3, r3, r2
	str	r3, [fp, #-8]
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #4]
	cmp	r2, r3
	bge	.L20
	ldr	r1, .L21
	ldr	r2, [fp, #-16]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	add	r3, r3, #8
	ldr	r0, [r3]
	ldr	r1, .L21
	ldr	r2, [fp, #-20]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	add	r3, r3, #8
	ldr	r1, [r3]
	ldr	r2, [fp, #4]
	ldr	r3, [fp, #-12]
	sub	r3, r2, r3
	str	r3, [sp]
	ldr	r3, [fp, #-28]
	ldr	r2, [fp, #-8]
	bl	p_qry_r
	mov	r3, r0
	b	.L19
.L20:
	ldr	r1, .L21
	ldr	r2, [fp, #-16]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	add	r3, r3, #4
	ldr	r0, [r3]
	ldr	r1, .L21
	ldr	r2, [fp, #-20]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	add	r3, r3, #4
	ldr	r1, [r3]
	ldr	r3, [fp, #4]
	str	r3, [sp]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-24]
	bl	p_qry_r
	mov	r3, r0
.L19:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L22:
	.align	2
.L21:
	.word	P
	.size	p_qry_r, .-p_qry_r
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%d%d\000"
	.align	2
.LC1:
	.ascii	"%d\000"
	.align	2
.LC2:
	.ascii	"%d%d%d\000"
	.global	__aeabi_idivmod
	.align	2
.LC3:
	.ascii	"%d\012\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 = 72
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #84
	ldr	r3, .L41
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-60]
	sub	r2, fp, #76
	sub	r3, fp, #80
	mov	r1, r3
	ldr	r0, .L41+4
	bl	__isoc99_scanf
	mov	r3, #0
	str	r3, [fp, #-56]
	b	.L24
.L25:
	ldr	r3, [fp, #-56]
	lsl	r3, r3, #2
	ldr	r2, .L41+8
	add	r3, r3, r2
	mov	r1, r3
	ldr	r0, .L41+12
	bl	__isoc99_scanf
	ldr	r3, [fp, #-56]
	add	r3, r3, #1
	str	r3, [fp, #-56]
.L24:
	ldr	r3, [fp, #-80]
	ldr	r2, [fp, #-56]
	cmp	r2, r3
	blt	.L25
	ldr	r3, .L41+16
	add	r3, r3, #59768832
	add	r3, r3, #233472
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #396]
	ldr	r3, .L41+16
	add	r3, r3, #60555264
	add	r3, r3, #245760
	mov	r2, r3
	mov	r3, #1
	str	r3, [r2, #1716]
	ldr	r2, [fp, #-80]
	ldr	r3, .L41+16
	add	r3, r3, #60555264
	add	r3, r3, #245760
	str	r2, [r3, #1720]
	ldr	r3, [fp, #-80]
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r1, .L41+8
	ldr	r0, .L41+20
	bl	memcpy
	ldr	r3, [fp, #-80]
	mov	r1, r3
	ldr	r3, .L41+24
	mov	r2, #4
	ldr	r0, .L41+20
	bl	qsort
	mov	r3, #0
	str	r3, [fp, #-52]
	mov	r3, #0
	str	r3, [fp, #-48]
	b	.L26
.L29:
	ldr	r3, [fp, #-48]
	add	r3, r3, #1
	str	r3, [fp, #-48]
.L27:
	ldr	r3, .L41+16
	add	r3, r3, #60555264
	add	r3, r3, #245760
	ldr	r3, [r3, #1720]
	ldr	r2, [fp, #-48]
	cmp	r2, r3
	bge	.L28
	ldr	r1, .L41+16
	ldr	r2, [fp, #-48]
	ldr	r3, .L41+28
	add	r3, r2, r3
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r2, [r3, #4]
	ldr	r0, .L41+16
	ldr	r1, [fp, #-52]
	ldr	r3, .L41+28
	add	r3, r1, r3
	lsl	r3, r3, #2
	add	r3, r0, r3
	ldr	r3, [r3, #4]
	cmp	r2, r3
	beq	.L29
.L28:
	ldr	r3, [fp, #-48]
	sub	r1, r3, #1
	ldr	r2, [fp, #-52]
	add	r3, r2, #1
	str	r3, [fp, #-52]
	ldr	r0, .L41+16
	ldr	r3, .L41+28
	add	r3, r1, r3
	lsl	r3, r3, #2
	add	r3, r0, r3
	ldr	r1, [r3, #4]
	ldr	r0, .L41+16
	ldr	r3, .L41+28
	add	r3, r2, r3
	lsl	r3, r3, #2
	add	r3, r0, r3
	str	r1, [r3, #4]
.L26:
	ldr	r3, .L41+16
	add	r3, r3, #60555264
	add	r3, r3, #245760
	ldr	r3, [r3, #1720]
	ldr	r2, [fp, #-52]
	cmp	r2, r3
	blt	.L27
	ldr	r3, .L41+16
	add	r3, r3, #60555264
	add	r3, r3, #245760
	mov	r2, r3
	ldr	r3, [fp, #-52]
	str	r3, [r2, #1720]
	ldr	r3, .L41+16
	add	r3, r3, #60555264
	add	r3, r3, #245760
	ldr	r3, [r3, #1720]
	mov	r1, r3
	mov	r0, #0
	bl	p_bld_r
	mov	r2, r0
	ldr	r3, .L41+16
	add	r3, r3, #59768832
	add	r3, r3, #233472
	str	r2, [r3, #400]
	mov	r3, #0
	str	r3, [fp, #-56]
	b	.L31
.L35:
	mov	r3, #0
	str	r3, [fp, #-44]
	ldr	r3, .L41+16
	add	r3, r3, #60555264
	add	r3, r3, #245760
	ldr	r3, [r3, #1720]
	str	r3, [fp, #-40]
	b	.L32
.L34:
	ldr	r2, [fp, #-40]
	ldr	r3, [fp, #-44]
	sub	r3, r2, r3
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	mov	r2, r3
	ldr	r3, [fp, #-44]
	add	r3, r3, r2
	str	r3, [fp, #-20]
	ldr	r1, .L41+16
	ldr	r2, [fp, #-20]
	ldr	r3, .L41+28
	add	r3, r2, r3
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r2, [r3, #4]
	ldr	r1, .L41+8
	ldr	r3, [fp, #-56]
	ldr	r3, [r1, r3, lsl #2]
	cmp	r2, r3
	bge	.L33
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-44]
	b	.L32
.L33:
	ldr	r3, [fp, #-20]
	str	r3, [fp, #-40]
.L32:
	ldr	r2, [fp, #-44]
	ldr	r3, [fp, #-40]
	cmp	r2, r3
	blt	.L34
	ldr	r3, [fp, #-44]
	str	r3, [fp, #-24]
	ldr	r3, .L41+16
	add	r3, r3, #60555264
	add	r3, r3, #245760
	ldr	r3, [r3, #1716]
	sub	r2, r3, #1
	ldr	r1, .L41+16
	ldr	r3, .L41+32
	add	r3, r2, r3
	ldr	r0, [r1, r3, lsl #2]
	ldr	r2, [fp, #-80]
	ldr	r3, .L41+16
	add	r3, r3, #60555264
	add	r3, r3, #245760
	ldr	r4, [r3, #1716]
	ldr	r3, [fp, #-24]
	mov	r1, #0
	bl	p_apd_r
	mov	r2, r0
	ldr	r1, .L41+16
	ldr	r3, .L41+32
	add	r3, r4, r3
	str	r2, [r1, r3, lsl #2]
	ldr	r3, .L41+16
	add	r3, r3, #60555264
	add	r3, r3, #245760
	ldr	r3, [r3, #1716]
	add	r2, r3, #1
	ldr	r3, .L41+16
	add	r3, r3, #60555264
	add	r3, r3, #245760
	str	r2, [r3, #1716]
	ldr	r3, [fp, #-56]
	add	r3, r3, #1
	str	r3, [fp, #-56]
.L31:
	ldr	r3, [fp, #-80]
	ldr	r2, [fp, #-56]
	cmp	r2, r3
	blt	.L35
	b	.L36
.L38:
	sub	r3, fp, #64
	sub	r2, fp, #68
	sub	r1, fp, #72
	ldr	r0, .L41+36
	bl	__isoc99_scanf
	ldr	r2, [fp, #-72]
	ldr	r3, [fp, #-60]
	eor	r3, r3, r2
	ldr	r2, [fp, #-80]
	mov	r1, r2
	mov	r0, r3
	bl	__aeabi_idivmod
	mov	r3, r1
	add	r3, r3, #1
	str	r3, [fp, #-72]
	ldr	r2, [fp, #-68]
	ldr	r3, [fp, #-60]
	eor	r3, r3, r2
	ldr	r2, [fp, #-80]
	mov	r1, r2
	mov	r0, r3
	bl	__aeabi_idivmod
	mov	r3, r1
	add	r3, r3, #1
	str	r3, [fp, #-68]
	ldr	r2, [fp, #-72]
	ldr	r3, [fp, #-68]
	cmp	r2, r3
	ble	.L37
	ldr	r3, [fp, #-72]
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-68]
	str	r3, [fp, #-72]
	ldr	r3, [fp, #-36]
	str	r3, [fp, #-68]
.L37:
	ldr	r2, [fp, #-64]
	ldr	r3, [fp, #-60]
	eor	r0, r2, r3
	ldr	r2, [fp, #-68]
	ldr	r3, [fp, #-72]
	sub	r3, r2, r3
	add	r3, r3, #1
	mov	r1, r3
	bl	__aeabi_idivmod
	mov	r3, r1
	add	r3, r3, #1
	str	r3, [fp, #-64]
	ldr	r3, [fp, #-72]
	sub	r2, r3, #1
	ldr	r1, .L41+16
	ldr	r3, .L41+32
	add	r3, r2, r3
	ldr	r0, [r1, r3, lsl #2]
	ldr	r2, [fp, #-68]
	ldr	r1, .L41+16
	ldr	r3, .L41+32
	add	r3, r2, r3
	ldr	r1, [r1, r3, lsl #2]
	ldr	r3, .L41+16
	add	r3, r3, #60555264
	add	r3, r3, #245760
	ldr	r2, [r3, #1720]
	ldr	r3, [fp, #-64]
	str	r3, [sp]
	mov	r3, r2
	mov	r2, #0
	bl	p_qry_r
	str	r0, [fp, #-32]
	ldr	r1, .L41+16
	ldr	r2, [fp, #-32]
	ldr	r3, .L41+28
	add	r3, r2, r3
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r3, [r3, #4]
	str	r3, [fp, #-28]
	ldr	r1, [fp, #-28]
	ldr	r0, .L41+40
	bl	printf
	ldr	r3, [fp, #-28]
	str	r3, [fp, #-60]
.L36:
	ldr	r3, [fp, #-76]
	sub	r2, r3, #1
	str	r2, [fp, #-76]
	cmp	r3, #0
	bne	.L38
	mov	r3, #0
	ldr	r2, .L41
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L40
	bl	__stack_chk_fail
.L40:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L42:
	.align	2
.L41:
	.word	.LC4
	.word	.LC0
	.word	val.5341
	.word	.LC1
	.word	P
	.word	P+60802748
	.word	p_cmp
	.word	15200686
	.word	15000676
	.word	.LC2
	.word	.LC3
	.size	main, .-main
	.local	val.5341
	.comm	val.5341,800036,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
