	.file	"937133.c"
	.intel_syntax noprefix
	.text
	.globl	Q
	.bss
	.align 32
	.type	Q, @object
	.size	Q, 12000108
Q:
	.zero	12000108
	.globl	cnt
	.align 32
	.type	cnt, @object
	.size	cnt, 4000036
cnt:
	.zero	4000036
	.globl	val
	.align 32
	.type	val, @object
	.size	val, 4000036
val:
	.zero	4000036
	.globl	ans
	.align 32
	.type	ans, @object
	.size	ans, 8000072
ans:
	.zero	8000072
	.globl	bel
	.align 32
	.type	bel, @object
	.size	bel, 4000036
bel:
	.zero	4000036
	.text
	.globl	cmp
	.type	cmp, @function
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 -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -32[rbp]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR 4[rax]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, bel[rip]
	mov	edx, DWORD PTR [rdx+rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 4[rax]
	cdqe
	lea	rcx, 0[0+rax*4]
	lea	rax, bel[rip]
	mov	eax, DWORD PTR [rcx+rax]
	cmp	edx, eax
	jne	.L2
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR 4[rax]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, bel[rip]
	mov	eax, DWORD PTR [rdx+rax]
	and	eax, 1
	test	eax, eax
	je	.L3
	mov	rax, QWORD PTR -16[rbp]
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	ecx, DWORD PTR [rax]
	mov	eax, edx
	sub	eax, ecx
	jmp	.L6
.L3:
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -16[rbp]
	mov	ecx, DWORD PTR [rax]
	mov	eax, edx
	sub	eax, ecx
	jmp	.L6
.L2:
	mov	rax, QWORD PTR -16[rbp]
	mov	edx, DWORD PTR 4[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	ecx, DWORD PTR 4[rax]
	mov	eax, edx
	sub	eax, ecx
.L6:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	cmp, .-cmp
	.section	.rodata
.LC0:
	.string	"%d%d%d"
.LC1:
	.string	"%d"
.LC2:
	.string	"%d%d"
.LC3:
	.string	"%lld\n"
	.text
	.globl	main
	.type	main, @function
main:
.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	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -24[rbp], 0
	mov	DWORD PTR -20[rbp], 0
	lea	rcx, -32[rbp]
	lea	rdx, -36[rbp]
	lea	rax, -40[rbp]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	DWORD PTR -28[rbp], 1
	jmp	.L8
.L9:
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, val[rip]
	add	rax, rdx
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	add	DWORD PTR -28[rbp], 1
.L8:
	mov	eax, DWORD PTR -40[rbp]
	cmp	DWORD PTR -28[rbp], eax
	jle	.L9
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, val[rip]
	mov	eax, DWORD PTR [rdx+rax]
	movsx	rdx, eax
	lea	rcx, 0[0+rdx*4]
	lea	rdx, cnt[rip]
	mov	edx, DWORD PTR [rcx+rdx]
	lea	ecx, 1[rdx]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, cnt[rip]
	mov	DWORD PTR [rdx+rax], ecx
	mov	QWORD PTR -16[rbp], 1
	mov	DWORD PTR -28[rbp], 0
	jmp	.L10
.L11:
	mov	eax, DWORD PTR -28[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	mov	rcx, rax
	lea	rdx, Q[rip+8]
	mov	eax, DWORD PTR -28[rbp]
	mov	DWORD PTR [rcx+rdx], eax
	mov	eax, DWORD PTR -28[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	lea	rdx, Q[rip]
	add	rax, rdx
	lea	rdx, 4[rax]
	mov	eax, DWORD PTR -28[rbp]
	movsx	rcx, eax
	mov	rax, rcx
	add	rax, rax
	add	rax, rcx
	sal	rax, 2
	lea	rcx, Q[rip]
	add	rax, rcx
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	add	DWORD PTR -28[rbp], 1
.L10:
	mov	eax, DWORD PTR -36[rbp]
	cmp	DWORD PTR -28[rbp], eax
	jl	.L11
	mov	DWORD PTR -28[rbp], 0
	jmp	.L12
.L13:
	mov	eax, DWORD PTR -28[rbp]
	movsx	rdx, eax
	imul	rdx, rdx, -1935500283
	shr	rdx, 32
	add	edx, eax
	sar	edx, 7
	sar	eax, 31
	mov	ecx, edx
	sub	ecx, eax
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, bel[rip]
	mov	DWORD PTR [rdx+rax], ecx
	add	DWORD PTR -28[rbp], 1
.L12:
	mov	eax, DWORD PTR -36[rbp]
	cmp	DWORD PTR -28[rbp], eax
	jl	.L13
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	lea	rcx, cmp[rip]
	mov	edx, 12
	mov	rsi, rax
	lea	rdi, Q[rip]
	call	qsort@PLT
	mov	DWORD PTR -28[rbp], 0
	jmp	.L14
.L16:
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, val[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, cnt[rip]
	mov	edx, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	lea	rcx, 0[0+rax*4]
	lea	rax, val[rip]
	mov	eax, DWORD PTR [rcx+rax]
	cdqe
	lea	rcx, 0[0+rax*4]
	lea	rax, cnt[rip]
	mov	eax, DWORD PTR [rcx+rax]
	imul	eax, edx
	cdqe
	sub	QWORD PTR -16[rbp], rax
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, val[rip]
	mov	eax, DWORD PTR [rdx+rax]
	movsx	rdx, eax
	lea	rcx, 0[0+rdx*4]
	lea	rdx, cnt[rip]
	mov	edx, DWORD PTR [rcx+rdx]
	lea	ecx, -1[rdx]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, cnt[rip]
	mov	DWORD PTR [rdx+rax], ecx
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, val[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, cnt[rip]
	mov	edx, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	lea	rcx, 0[0+rax*4]
	lea	rax, val[rip]
	mov	eax, DWORD PTR [rcx+rax]
	cdqe
	lea	rcx, 0[0+rax*4]
	lea	rax, cnt[rip]
	mov	eax, DWORD PTR [rcx+rax]
	imul	eax, edx
	cdqe
	add	QWORD PTR -16[rbp], rax
	add	DWORD PTR -24[rbp], 1
.L15:
	mov	eax, DWORD PTR -28[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	lea	rax, Q[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cmp	DWORD PTR -24[rbp], eax
	jl	.L16
	jmp	.L17
.L18:
	sub	DWORD PTR -24[rbp], 1
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, val[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, cnt[rip]
	mov	edx, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	lea	rcx, 0[0+rax*4]
	lea	rax, val[rip]
	mov	eax, DWORD PTR [rcx+rax]
	cdqe
	lea	rcx, 0[0+rax*4]
	lea	rax, cnt[rip]
	mov	eax, DWORD PTR [rcx+rax]
	imul	eax, edx
	cdqe
	sub	QWORD PTR -16[rbp], rax
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, val[rip]
	mov	eax, DWORD PTR [rdx+rax]
	movsx	rdx, eax
	lea	rcx, 0[0+rdx*4]
	lea	rdx, cnt[rip]
	mov	edx, DWORD PTR [rcx+rdx]
	lea	ecx, 1[rdx]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, cnt[rip]
	mov	DWORD PTR [rdx+rax], ecx
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, val[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, cnt[rip]
	mov	edx, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	lea	rcx, 0[0+rax*4]
	lea	rax, val[rip]
	mov	eax, DWORD PTR [rcx+rax]
	cdqe
	lea	rcx, 0[0+rax*4]
	lea	rax, cnt[rip]
	mov	eax, DWORD PTR [rcx+rax]
	imul	eax, edx
	cdqe
	add	QWORD PTR -16[rbp], rax
.L17:
	mov	eax, DWORD PTR -28[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	lea	rax, Q[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cmp	DWORD PTR -24[rbp], eax
	jg	.L18
	jmp	.L19
.L20:
	add	DWORD PTR -20[rbp], 1
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, val[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, cnt[rip]
	mov	edx, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rcx, 0[0+rax*4]
	lea	rax, val[rip]
	mov	eax, DWORD PTR [rcx+rax]
	cdqe
	lea	rcx, 0[0+rax*4]
	lea	rax, cnt[rip]
	mov	eax, DWORD PTR [rcx+rax]
	imul	eax, edx
	cdqe
	sub	QWORD PTR -16[rbp], rax
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, val[rip]
	mov	eax, DWORD PTR [rdx+rax]
	movsx	rdx, eax
	lea	rcx, 0[0+rdx*4]
	lea	rdx, cnt[rip]
	mov	edx, DWORD PTR [rcx+rdx]
	lea	ecx, 1[rdx]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, cnt[rip]
	mov	DWORD PTR [rdx+rax], ecx
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, val[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, cnt[rip]
	mov	edx, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rcx, 0[0+rax*4]
	lea	rax, val[rip]
	mov	eax, DWORD PTR [rcx+rax]
	cdqe
	lea	rcx, 0[0+rax*4]
	lea	rax, cnt[rip]
	mov	eax, DWORD PTR [rcx+rax]
	imul	eax, edx
	cdqe
	add	QWORD PTR -16[rbp], rax
.L19:
	mov	eax, DWORD PTR -28[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	lea	rax, Q[rip+4]
	mov	eax, DWORD PTR [rdx+rax]
	cmp	DWORD PTR -20[rbp], eax
	jl	.L20
	jmp	.L21
.L22:
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, val[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, cnt[rip]
	mov	edx, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rcx, 0[0+rax*4]
	lea	rax, val[rip]
	mov	eax, DWORD PTR [rcx+rax]
	cdqe
	lea	rcx, 0[0+rax*4]
	lea	rax, cnt[rip]
	mov	eax, DWORD PTR [rcx+rax]
	imul	eax, edx
	cdqe
	sub	QWORD PTR -16[rbp], rax
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, val[rip]
	mov	eax, DWORD PTR [rdx+rax]
	movsx	rdx, eax
	lea	rcx, 0[0+rdx*4]
	lea	rdx, cnt[rip]
	mov	edx, DWORD PTR [rcx+rdx]
	lea	ecx, -1[rdx]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, cnt[rip]
	mov	DWORD PTR [rdx+rax], ecx
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, val[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, cnt[rip]
	mov	edx, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rcx, 0[0+rax*4]
	lea	rax, val[rip]
	mov	eax, DWORD PTR [rcx+rax]
	cdqe
	lea	rcx, 0[0+rax*4]
	lea	rax, cnt[rip]
	mov	eax, DWORD PTR [rcx+rax]
	imul	eax, edx
	cdqe
	add	QWORD PTR -16[rbp], rax
	sub	DWORD PTR -20[rbp], 1
.L21:
	mov	eax, DWORD PTR -28[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	lea	rax, Q[rip+4]
	mov	eax, DWORD PTR [rdx+rax]
	cmp	DWORD PTR -20[rbp], eax
	jg	.L22
	mov	eax, DWORD PTR -28[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	lea	rax, Q[rip+8]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rcx, 0[0+rax*8]
	lea	rdx, ans[rip]
	mov	rax, QWORD PTR -16[rbp]
	mov	QWORD PTR [rcx+rdx], rax
	add	DWORD PTR -28[rbp], 1
.L14:
	mov	eax, DWORD PTR -36[rbp]
	cmp	DWORD PTR -28[rbp], eax
	jl	.L15
	mov	DWORD PTR -28[rbp], 0
	jmp	.L24
.L25:
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, ans[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -28[rbp], 1
.L24:
	mov	eax, DWORD PTR -36[rbp]
	cmp	DWORD PTR -28[rbp], eax
	jl	.L25
	mov	eax, 0
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L27
	call	__stack_chk_fail@PLT
.L27:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.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	"937133.c"
	.text
	.comm	Q,12000108,4
	.comm	cnt,4000036,4
	.comm	val,4000036,4
	.comm	ans,8000072,8
	.comm	bel,4000036,4
	.align	2
	.global	cmp
	.syntax unified
	.arm
	.fpu softvfp
	.type	cmp, %function
cmp:
	@ 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]
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-20]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #4]
	ldr	r2, .L7
	ldr	r2, [r2, r3, lsl #2]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #4]
	ldr	r1, .L7
	ldr	r3, [r1, r3, lsl #2]
	cmp	r2, r3
	bne	.L2
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #4]
	ldr	r2, .L7
	ldr	r3, [r2, r3, lsl #2]
	and	r3, r3, #1
	cmp	r3, #0
	beq	.L3
	ldr	r3, [fp, #-12]
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	sub	r3, r2, r3
	b	.L6
.L3:
	ldr	r3, [fp, #-8]
	ldr	r2, [r3]
	ldr	r3, [fp, #-12]
	ldr	r3, [r3]
	sub	r3, r2, r3
	b	.L6
.L2:
	ldr	r3, [fp, #-12]
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #4]
	sub	r3, r2, r3
.L6:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L8:
	.align	2
.L7:
	.word	bel
	.size	cmp, .-cmp
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%d%d%d\000"
	.align	2
.LC1:
	.ascii	"%d\000"
	.align	2
.LC2:
	.ascii	"%d%d\000"
	.align	2
.LC3:
	.ascii	"%lld\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 = 80
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, fp, lr}
	add	fp, sp, #28
	sub	sp, sp, #80
	ldr	r3, .L30
	ldr	r3, [r3]
	str	r3, [fp, #-32]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-52]
	mov	r3, #0
	str	r3, [fp, #-48]
	sub	r3, fp, #60
	sub	r2, fp, #64
	sub	r1, fp, #68
	ldr	r0, .L30+4
	bl	__isoc99_scanf
	mov	r3, #1
	str	r3, [fp, #-56]
	b	.L10
.L11:
	ldr	r3, [fp, #-56]
	lsl	r2, r3, #2
	ldr	r3, .L30+8
	add	r3, r2, r3
	mov	r1, r3
	ldr	r0, .L30+12
	bl	__isoc99_scanf
	ldr	r3, [fp, #-56]
	add	r3, r3, #1
	str	r3, [fp, #-56]
.L10:
	ldr	r2, [fp, #-68]
	ldr	r3, [fp, #-56]
	cmp	r3, r2
	ble	.L11
	ldr	r2, .L30+8
	ldr	r3, [fp, #-52]
	ldr	r1, [r2, r3, lsl #2]
	ldr	r3, .L30+16
	ldr	r3, [r3, r1, lsl #2]
	add	r2, r3, #1
	ldr	r3, .L30+16
	str	r2, [r3, r1, lsl #2]
	mov	r2, #1
	mov	r3, #0
	str	r2, [fp, #-44]
	str	r3, [fp, #-40]
	mov	r3, #0
	str	r3, [fp, #-56]
	b	.L12
.L13:
	ldr	r1, .L30+20
	ldr	r2, [fp, #-56]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	add	r2, r3, #8
	ldr	r3, [fp, #-56]
	str	r3, [r2]
	ldr	r2, [fp, #-56]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	ldr	r2, .L30+20
	add	r1, r3, r2
	ldr	r2, [fp, #-56]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	ldr	r2, .L30+20
	add	r3, r3, r2
	add	r3, r3, #4
	mov	r2, r3
	ldr	r0, .L30+24
	bl	__isoc99_scanf
	ldr	r3, [fp, #-56]
	add	r3, r3, #1
	str	r3, [fp, #-56]
.L12:
	ldr	r2, [fp, #-64]
	ldr	r3, [fp, #-56]
	cmp	r3, r2
	blt	.L13
	mov	r3, #0
	str	r3, [fp, #-56]
	b	.L14
.L15:
	ldr	r1, [fp, #-56]
	ldr	r3, .L30+28
	smull	r2, r3, r1, r3
	add	r3, r3, r1
	asr	r2, r3, #7
	asr	r3, r1, #31
	sub	r1, r2, r3
	ldr	r2, .L30+32
	ldr	r3, [fp, #-56]
	str	r1, [r2, r3, lsl #2]
	ldr	r3, [fp, #-56]
	add	r3, r3, #1
	str	r3, [fp, #-56]
.L14:
	ldr	r2, [fp, #-64]
	ldr	r3, [fp, #-56]
	cmp	r3, r2
	blt	.L15
	ldr	r3, [fp, #-64]
	mov	r1, r3
	ldr	r3, .L30+36
	mov	r2, #12
	ldr	r0, .L30+20
	bl	qsort
	mov	r3, #0
	str	r3, [fp, #-56]
	b	.L16
.L18:
	ldr	r2, .L30+8
	ldr	r3, [fp, #-52]
	ldr	r2, [r2, r3, lsl #2]
	ldr	r3, .L30+16
	ldr	r1, [r3, r2, lsl #2]
	ldr	r2, .L30+8
	ldr	r3, [fp, #-52]
	ldr	r2, [r2, r3, lsl #2]
	ldr	r3, .L30+16
	ldr	r3, [r3, r2, lsl #2]
	mul	r3, r1, r3
	mov	r0, r3
	asr	r1, r0, #31
	sub	r3, fp, #44
	ldmia	r3, {r2-r3}
	subs	ip, r2, r0
	str	ip, [fp, #-76]
	sbc	r3, r3, r1
	str	r3, [fp, #-72]
	sub	r3, fp, #76
	ldmia	r3, {r2-r3}
	str	r2, [fp, #-44]
	str	r3, [fp, #-40]
	ldr	r2, .L30+8
	ldr	r3, [fp, #-52]
	ldr	r1, [r2, r3, lsl #2]
	ldr	r3, .L30+16
	ldr	r3, [r3, r1, lsl #2]
	sub	r2, r3, #1
	ldr	r3, .L30+16
	str	r2, [r3, r1, lsl #2]
	ldr	r2, .L30+8
	ldr	r3, [fp, #-52]
	ldr	r2, [r2, r3, lsl #2]
	ldr	r3, .L30+16
	ldr	r1, [r3, r2, lsl #2]
	ldr	r2, .L30+8
	ldr	r3, [fp, #-52]
	ldr	r2, [r2, r3, lsl #2]
	ldr	r3, .L30+16
	ldr	r3, [r3, r2, lsl #2]
	mul	r3, r1, r3
	mov	r0, r3
	asr	r1, r0, #31
	sub	r3, fp, #44
	ldmia	r3, {r2-r3}
	adds	r8, r2, r0
	adc	r9, r3, r1
	str	r8, [fp, #-44]
	str	r9, [fp, #-40]
	ldr	r3, [fp, #-52]
	add	r3, r3, #1
	str	r3, [fp, #-52]
.L17:
	ldr	r1, .L30+20
	ldr	r2, [fp, #-56]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-52]
	cmp	r3, r2
	blt	.L18
	b	.L19
.L20:
	ldr	r3, [fp, #-52]
	sub	r3, r3, #1
	str	r3, [fp, #-52]
	ldr	r2, .L30+8
	ldr	r3, [fp, #-52]
	ldr	r2, [r2, r3, lsl #2]
	ldr	r3, .L30+16
	ldr	r1, [r3, r2, lsl #2]
	ldr	r2, .L30+8
	ldr	r3, [fp, #-52]
	ldr	r2, [r2, r3, lsl #2]
	ldr	r3, .L30+16
	ldr	r3, [r3, r2, lsl #2]
	mul	r3, r1, r3
	mov	r0, r3
	asr	r1, r0, #31
	sub	r3, fp, #44
	ldmia	r3, {r2-r3}
	subs	ip, r2, r0
	str	ip, [fp, #-84]
	sbc	r3, r3, r1
	str	r3, [fp, #-80]
	sub	r3, fp, #84
	ldmia	r3, {r2-r3}
	str	r2, [fp, #-44]
	str	r3, [fp, #-40]
	ldr	r2, .L30+8
	ldr	r3, [fp, #-52]
	ldr	r1, [r2, r3, lsl #2]
	ldr	r3, .L30+16
	ldr	r3, [r3, r1, lsl #2]
	add	r2, r3, #1
	ldr	r3, .L30+16
	str	r2, [r3, r1, lsl #2]
	ldr	r2, .L30+8
	ldr	r3, [fp, #-52]
	ldr	r2, [r2, r3, lsl #2]
	ldr	r3, .L30+16
	ldr	r1, [r3, r2, lsl #2]
	ldr	r2, .L30+8
	ldr	r3, [fp, #-52]
	ldr	r2, [r2, r3, lsl #2]
	ldr	r3, .L30+16
	ldr	r3, [r3, r2, lsl #2]
	mul	r3, r1, r3
	mov	r0, r3
	asr	r1, r0, #31
	sub	r3, fp, #44
	ldmia	r3, {r2-r3}
	adds	r4, r2, r0
	adc	r5, r3, r1
	str	r4, [fp, #-44]
	str	r5, [fp, #-40]
.L19:
	ldr	r1, .L30+20
	ldr	r2, [fp, #-56]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-52]
	cmp	r3, r2
	bgt	.L20
	b	.L21
.L22:
	ldr	r3, [fp, #-48]
	add	r3, r3, #1
	str	r3, [fp, #-48]
	ldr	r2, .L30+8
	ldr	r3, [fp, #-48]
	ldr	r2, [r2, r3, lsl #2]
	ldr	r3, .L30+16
	ldr	r1, [r3, r2, lsl #2]
	ldr	r2, .L30+8
	ldr	r3, [fp, #-48]
	ldr	r2, [r2, r3, lsl #2]
	ldr	r3, .L30+16
	ldr	r3, [r3, r2, lsl #2]
	mul	r3, r1, r3
	mov	r0, r3
	asr	r1, r0, #31
	sub	r3, fp, #44
	ldmia	r3, {r2-r3}
	subs	ip, r2, r0
	str	ip, [fp, #-92]
	sbc	r3, r3, r1
	str	r3, [fp, #-88]
	sub	r3, fp, #92
	ldmia	r3, {r2-r3}
	str	r2, [fp, #-44]
	str	r3, [fp, #-40]
	ldr	r2, .L30+8
	ldr	r3, [fp, #-48]
	ldr	r1, [r2, r3, lsl #2]
	ldr	r3, .L30+16
	ldr	r3, [r3, r1, lsl #2]
	add	r2, r3, #1
	ldr	r3, .L30+16
	str	r2, [r3, r1, lsl #2]
	ldr	r2, .L30+8
	ldr	r3, [fp, #-48]
	ldr	r2, [r2, r3, lsl #2]
	ldr	r3, .L30+16
	ldr	r1, [r3, r2, lsl #2]
	ldr	r2, .L30+8
	ldr	r3, [fp, #-48]
	ldr	r2, [r2, r3, lsl #2]
	ldr	r3, .L30+16
	ldr	r3, [r3, r2, lsl #2]
	mul	r3, r1, r3
	mov	r0, r3
	asr	r1, r0, #31
	sub	r3, fp, #44
	ldmia	r3, {r2-r3}
	adds	r6, r2, r0
	adc	r7, r3, r1
	str	r6, [fp, #-44]
	str	r7, [fp, #-40]
.L21:
	ldr	r1, .L30+20
	ldr	r2, [fp, #-56]
	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	r3, [fp, #-48]
	cmp	r3, r2
	blt	.L22
	b	.L23
.L24:
	ldr	r2, .L30+8
	ldr	r3, [fp, #-48]
	ldr	r2, [r2, r3, lsl #2]
	ldr	r3, .L30+16
	ldr	r1, [r3, r2, lsl #2]
	ldr	r2, .L30+8
	ldr	r3, [fp, #-48]
	ldr	r2, [r2, r3, lsl #2]
	ldr	r3, .L30+16
	ldr	r3, [r3, r2, lsl #2]
	mul	r3, r1, r3
	mov	r0, r3
	asr	r1, r0, #31
	sub	r3, fp, #44
	ldmia	r3, {r2-r3}
	subs	ip, r2, r0
	str	ip, [fp, #-100]
	sbc	r3, r3, r1
	str	r3, [fp, #-96]
	sub	r3, fp, #100
	ldmia	r3, {r2-r3}
	str	r2, [fp, #-44]
	str	r3, [fp, #-40]
	ldr	r2, .L30+8
	ldr	r3, [fp, #-48]
	ldr	r1, [r2, r3, lsl #2]
	ldr	r3, .L30+16
	ldr	r3, [r3, r1, lsl #2]
	sub	r2, r3, #1
	ldr	r3, .L30+16
	str	r2, [r3, r1, lsl #2]
	ldr	r2, .L30+8
	ldr	r3, [fp, #-48]
	ldr	r2, [r2, r3, lsl #2]
	ldr	r3, .L30+16
	ldr	r1, [r3, r2, lsl #2]
	ldr	r2, .L30+8
	ldr	r3, [fp, #-48]
	ldr	r2, [r2, r3, lsl #2]
	ldr	r3, .L30+16
	ldr	r3, [r3, r2, lsl #2]
	mul	r3, r1, r3
	mov	r0, r3
	asr	r1, r0, #31
	sub	r3, fp, #44
	ldmia	r3, {r2-r3}
	adds	ip, r2, r0
	str	ip, [fp, #-108]
	adc	r3, r3, r1
	str	r3, [fp, #-104]
	sub	r3, fp, #108
	ldmia	r3, {r2-r3}
	str	r2, [fp, #-44]
	str	r3, [fp, #-40]
	ldr	r3, [fp, #-48]
	sub	r3, r3, #1
	str	r3, [fp, #-48]
.L23:
	ldr	r1, .L30+20
	ldr	r2, [fp, #-56]
	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	r3, [fp, #-48]
	cmp	r3, r2
	bgt	.L24
	ldr	r1, .L30+20
	ldr	r2, [fp, #-56]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	add	r3, r3, #8
	ldr	r3, [r3]
	ldr	r2, .L30+40
	lsl	r3, r3, #3
	add	r1, r2, r3
	sub	r3, fp, #44
	ldmia	r3, {r2-r3}
	stm	r1, {r2-r3}
	ldr	r3, [fp, #-56]
	add	r3, r3, #1
	str	r3, [fp, #-56]
.L16:
	ldr	r2, [fp, #-64]
	ldr	r3, [fp, #-56]
	cmp	r3, r2
	blt	.L17
	mov	r3, #0
	str	r3, [fp, #-56]
	b	.L26
.L27:
	ldr	r2, .L30+40
	ldr	r3, [fp, #-56]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldmia	r3, {r2-r3}
	ldr	r0, .L30+44
	bl	printf
	ldr	r3, [fp, #-56]
	add	r3, r3, #1
	str	r3, [fp, #-56]
.L26:
	ldr	r3, [fp, #-64]
	ldr	r2, [fp, #-56]
	cmp	r2, r3
	blt	.L27
	mov	r3, #0
	ldr	r2, .L30
	ldr	r1, [r2]
	ldr	r2, [fp, #-32]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L29
	bl	__stack_chk_fail
.L29:
	mov	r0, r3
	sub	sp, fp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, fp, pc}
.L31:
	.align	2
.L30:
	.word	.LC4
	.word	.LC0
	.word	val
	.word	.LC1
	.word	cnt
	.word	Q
	.word	.LC2
	.word	-1935500283
	.word	bel
	.word	cmp
	.word	ans
	.word	.LC3
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
