	.file	"87234.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%lld"
	.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, -798720[rsp]
.LPSRL0:
	sub	rsp, 4096
	or	DWORD PTR [rsp], 0
	cmp	rsp, r11
	jne	.LPSRL0
	sub	rsp, 1344
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -800060[rbp]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	jmp	.L2
.L14:
	mov	QWORD PTR -800040[rbp], 0
	lea	rax, -800056[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	QWORD PTR -800048[rbp], 0
	jmp	.L3
.L4:
	lea	rdx, -800016[rbp]
	mov	rax, QWORD PTR -800048[rbp]
	sal	rax, 3
	add	rax, rdx
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	add	QWORD PTR -800048[rbp], 1
.L3:
	mov	rax, QWORD PTR -800056[rbp]
	cmp	QWORD PTR -800048[rbp], rax
	jl	.L4
	mov	rax, QWORD PTR -800016[rbp]
	mov	QWORD PTR -800032[rbp], rax
	mov	rax, QWORD PTR -800056[rbp]
	sub	rax, 1
	mov	rax, QWORD PTR -800016[rbp+rax*8]
	mov	QWORD PTR -800024[rbp], rax
	mov	rax, QWORD PTR -800032[rbp]
	cmp	rax, QWORD PTR -800024[rbp]
	je	.L5
	mov	QWORD PTR -800048[rbp], 1
	jmp	.L6
.L9:
	mov	rax, QWORD PTR -800048[rbp]
	mov	rax, QWORD PTR -800016[rbp+rax*8]
	cmp	QWORD PTR -800032[rbp], rax
	jne	.L7
	add	QWORD PTR -800048[rbp], 1
	jmp	.L6
.L7:
	mov	rax, QWORD PTR -800056[rbp]
	sub	rax, QWORD PTR -800048[rbp]
	mov	rdx, rax
	mov	rax, QWORD PTR -800040[rbp]
	lea	rcx, [rdx+rax]
	movabs	rdx, -6357606768936307601
	mov	rax, rcx
	imul	rdx
	lea	rax, [rdx+rcx]
	sar	rax, 16
	mov	rdx, rcx
	sar	rdx, 63
	sub	rax, rdx
	mov	QWORD PTR -800040[rbp], rax
	mov	rax, QWORD PTR -800040[rbp]
	imul	rdx, rax, 100001
	mov	rax, rcx
	sub	rax, rdx
	mov	QWORD PTR -800040[rbp], rax
	jmp	.L10
.L6:
	mov	rax, QWORD PTR -800056[rbp]
	cmp	QWORD PTR -800048[rbp], rax
	jl	.L9
	jmp	.L10
.L5:
	mov	rax, QWORD PTR -800032[rbp]
	cmp	rax, QWORD PTR -800024[rbp]
	jne	.L10
	mov	QWORD PTR -800048[rbp], 1
	jmp	.L11
.L13:
	mov	rax, QWORD PTR -800048[rbp]
	mov	rax, QWORD PTR -800016[rbp+rax*8]
	cmp	QWORD PTR -800032[rbp], rax
	jne	.L12
	add	QWORD PTR -800048[rbp], 1
	jmp	.L11
.L12:
	mov	rax, QWORD PTR -800056[rbp]
	sub	rax, 1
	sub	rax, QWORD PTR -800048[rbp]
	mov	rdx, rax
	mov	rax, QWORD PTR -800040[rbp]
	lea	rcx, [rdx+rax]
	movabs	rdx, -6357606768936307601
	mov	rax, rcx
	imul	rdx
	lea	rax, [rdx+rcx]
	sar	rax, 16
	mov	rdx, rcx
	sar	rdx, 63
	sub	rax, rdx
	mov	QWORD PTR -800040[rbp], rax
	mov	rax, QWORD PTR -800040[rbp]
	imul	rdx, rax, 100001
	mov	rax, rcx
	sub	rax, rdx
	mov	QWORD PTR -800040[rbp], rax
	jmp	.L10
.L11:
	mov	rax, QWORD PTR -800056[rbp]
	sub	rax, 1
	cmp	QWORD PTR -800048[rbp], rax
	jl	.L13
.L10:
	mov	rax, QWORD PTR -800040[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 10
	call	putchar@PLT
.L2:
	mov	eax, DWORD PTR -800060[rbp]
	lea	edx, -1[rax]
	mov	DWORD PTR -800060[rbp], edx
	test	eax, eax
	jne	.L14
	mov	eax, 0
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L16
	call	__stack_chk_fail@PLT
.L16:
	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	"87234.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%d\000"
	.align	2
.LC1:
	.ascii	"%lld\000"
	.global	__aeabi_ldivmod
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 800128
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r6, r7, r8, r9, fp, lr}
	add	fp, sp, #24
	sub	sp, sp, #798720
	sub	sp, sp, #1408
	sub	sp, sp, #4
	ldr	r3, .L17+8
	ldr	r3, [r3]
	str	r3, [fp, #-32]
	mov	r3,#0
	ldr	r3, .L17+12
	sub	r2, fp, #28
	add	r3, r2, r3
	mov	r1, r3
	ldr	r0, .L17+16
	bl	__isoc99_scanf
	b	.L2
.L14:
	sub	r3, fp, #798720
	sub	r3, r3, #28
	sub	r3, r3, #1312
	mov	r1, r3
	mov	r2, #0
	mov	r3, #0
	stmdb	r1, {r2-r3}
	ldr	r3, .L17+20
	sub	r2, fp, #28
	add	r3, r2, r3
	mov	r1, r3
	ldr	r0, .L17+24
	bl	__isoc99_scanf
	sub	r3, fp, #798720
	sub	r3, r3, #28
	sub	r3, r3, #1328
	mov	r1, r3
	mov	r2, #0
	mov	r3, #0
	stm	r1, {r2-r3}
	b	.L3
.L4:
	sub	r2, fp, #798720
	sub	r2, r2, #28
	sub	r2, r2, #1296
	sub	r3, fp, #798720
	sub	r3, r3, #28
	sub	r3, r3, #1328
	ldr	r3, [r3]
	lsl	r3, r3, #3
	add	r3, r2, r3
	mov	r1, r3
	ldr	r0, .L17+24
	bl	__isoc99_scanf
	sub	r3, fp, #798720
	sub	r3, r3, #28
	sub	r3, r3, #1328
	mov	r1, r3
	sub	r3, fp, #798720
	sub	r3, r3, #28
	sub	r3, r3, #1328
	ldmia	r3, {r2-r3}
	adds	r0, r2, #1
	ldr	ip, .L17+28
	add	ip, fp, ip
	str	r0, [ip]
	adc	r3, r3, #0
	ldr	r2, .L17+32
	add	r2, fp, r2
	str	r3, [r2]
	ldr	r3, .L17+28
	add	r3, fp, r3
	ldmia	r3, {r3-r4}
	stm	r1, {r3-r4}
.L3:
	sub	r3, fp, #798720
	sub	r3, r3, #28
	sub	r3, r3, #1328
	ldmdb	r3, {r0-r1}
	sub	r3, fp, #798720
	sub	r3, r3, #28
	sub	r3, r3, #1328
	ldmia	r3, {r2-r3}
	cmp	r2, r0
	sbcs	r3, r3, r1
	blt	.L4
	sub	r3, fp, #798720
	sub	r3, r3, #28
	sub	r3, r3, #1312
	mov	r1, r3
	sub	r3, fp, #798720
	sub	r3, r3, #28
	sub	r3, r3, #1296
	ldmia	r3, {r2-r3}
	stm	r1, {r2-r3}
	sub	r3, fp, #798720
	sub	r3, r3, #28
	sub	r3, r3, #1328
	ldmdb	r3, {r2-r3}
	subs	r1, r2, #1
	ldr	r0, .L17+36
	add	r0, fp, r0
	str	r1, [r0]
	sbc	r3, r3, #0
	sub	r2, fp, #798720
	sub	r2, r2, #1376
	str	r3, [r2]
	sub	r3, fp, #798720
	sub	r3, r3, #28
	sub	r3, r3, #1296
	mov	r1, r3
	sub	r3, fp, #798720
	sub	r3, r3, #28
	mov	r2, r3
	ldr	r3, .L17+36
	add	r3, fp, r3
	ldr	r3, [r3]
	lsl	r3, r3, #3
	add	r3, r2, r3
	sub	r3, r3, #1296
	ldmia	r3, {r2-r3}
	stmdb	r1, {r2-r3}
	sub	r3, fp, #798720
	sub	r3, r3, #28
	sub	r3, r3, #1312
	mov	r2, r3
	sub	r3, fp, #798720
	sub	r3, r3, #28
	sub	r3, r3, #1296
	ldmia	r2, {r0-r1}
	ldmdb	r3, {r2-r3}
	cmp	r1, r3
	cmpeq	r0, r2
	beq	.L5
	sub	r3, fp, #798720
	sub	r3, r3, #28
	sub	r3, r3, #1328
	mov	r1, r3
	mov	r2, #1
	mov	r3, #0
	stm	r1, {r2-r3}
	b	.L6
.L9:
	sub	r3, fp, #798720
	sub	r3, r3, #28
	mov	r2, r3
	sub	r3, fp, #798720
	sub	r3, r3, #28
	sub	r3, r3, #1328
	ldr	r3, [r3]
	lsl	r3, r3, #3
	add	r3, r2, r3
	sub	r3, r3, #1296
	ldmia	r3, {r0-r1}
	sub	r3, fp, #798720
	sub	r3, r3, #28
	sub	r3, r3, #1312
	ldmia	r3, {r2-r3}
	cmp	r3, r1
	cmpeq	r2, r0
	bne	.L7
	sub	r3, fp, #798720
	sub	r3, r3, #28
	sub	r3, r3, #1328
	mov	r1, r3
	sub	r3, fp, #798720
	sub	r3, r3, #28
	sub	r3, r3, #1328
	ldmia	r3, {r2-r3}
	adds	r0, r2, #1
	ldr	ip, .L17+40
	add	ip, fp, ip
	str	r0, [ip]
	adc	r3, r3, #0
	sub	r2, fp, #798720
	sub	r2, r2, #1424
	str	r3, [r2]
	ldr	r3, .L17+40
	add	r3, fp, r3
	ldmia	r3, {r3-r4}
	stm	r1, {r3-r4}
	b	.L6
.L7:
	sub	r3, fp, #798720
	sub	r3, r3, #28
	sub	r3, r3, #1328
	ldmdb	r3, {r0-r1}
	sub	r3, fp, #798720
	sub	r3, r3, #28
	sub	r3, r3, #1328
	ldmia	r3, {r2-r3}
	subs	r6, r0, r2
	sbc	r7, r1, r3
	sub	r3, fp, #798720
	sub	r3, r3, #28
	sub	r3, r3, #1312
	ldmdb	r3, {r2-r3}
	adds	r1, r6, r2
	ldr	r0, .L17+44
	add	r0, fp, r0
	str	r1, [r0]
	adc	r3, r7, r3
	ldr	r2, .L17+48
	add	r2, fp, r2
	str	r3, [r2]
	sub	r3, fp, #798720
	sub	r3, r3, #28
	sub	r3, r3, #1312
	mov	r4, r3
	adr	r3, .L17
	ldmia	r3, {r2-r3}
	ldr	r1, .L17+44
	add	r1, fp, r1
	ldmia	r1, {r0-r1}
	bl	__aeabi_ldivmod
	stmdb	r4, {r2-r3}
	b	.L10
.L6:
	sub	r3, fp, #798720
	sub	r3, r3, #28
	sub	r3, r3, #1328
	ldmdb	r3, {r0-r1}
	sub	r3, fp, #798720
	sub	r3, r3, #28
	sub	r3, r3, #1328
	ldmia	r3, {r2-r3}
	cmp	r2, r0
	sbcs	r3, r3, r1
	blt	.L9
	b	.L10
.L5:
	sub	r3, fp, #798720
	sub	r3, r3, #28
	sub	r3, r3, #1312
	mov	r2, r3
	sub	r3, fp, #798720
	sub	r3, r3, #28
	sub	r3, r3, #1296
	ldmia	r2, {r0-r1}
	ldmdb	r3, {r2-r3}
	cmp	r1, r3
	cmpeq	r0, r2
	bne	.L10
	sub	r3, fp, #798720
	sub	r3, r3, #28
	sub	r3, r3, #1328
	mov	r1, r3
	mov	r2, #1
	mov	r3, #0
	stm	r1, {r2-r3}
	b	.L11
.L13:
	sub	r3, fp, #798720
	sub	r3, r3, #28
	mov	r2, r3
	sub	r3, fp, #798720
	sub	r3, r3, #28
	sub	r3, r3, #1328
	ldr	r3, [r3]
	lsl	r3, r3, #3
	add	r3, r2, r3
	sub	r3, r3, #1296
	ldmia	r3, {r0-r1}
	sub	r3, fp, #798720
	sub	r3, r3, #28
	sub	r3, r3, #1312
	ldmia	r3, {r2-r3}
	cmp	r3, r1
	cmpeq	r2, r0
	bne	.L12
	sub	r3, fp, #798720
	sub	r3, r3, #28
	sub	r3, r3, #1328
	mov	r1, r3
	sub	r3, fp, #798720
	sub	r3, r3, #28
	sub	r3, r3, #1328
	ldmia	r3, {r2-r3}
	adds	r0, r2, #1
	ldr	ip, .L17+52
	add	ip, fp, ip
	str	r0, [ip]
	adc	r3, r3, #0
	ldr	r2, .L17+56
	add	r2, fp, r2
	str	r3, [r2]
	ldr	r3, .L17+52
	add	r3, fp, r3
	ldmia	r3, {r3-r4}
	stm	r1, {r3-r4}
	b	.L11
.L12:
	sub	r3, fp, #798720
	sub	r3, r3, #28
	sub	r3, r3, #1328
	ldmdb	r3, {r2-r3}
	subs	r1, r2, #1
	ldr	r0, .L17+60
	add	r0, fp, r0
	str	r1, [r0]
	sbc	r3, r3, #0
	sub	r2, fp, #798720
	sub	r2, r2, #1392
	str	r3, [r2]
	sub	r3, fp, #798720
	sub	r3, r3, #28
	sub	r3, r3, #1328
	ldmia	r3, {r2-r3}
	ldr	r1, .L17+60
	add	r1, fp, r1
	ldmia	r1, {r0-r1}
	mov	ip, r0
	subs	r8, ip, r2
	sbc	r9, r1, r3
	sub	r3, fp, #798720
	sub	r3, r3, #28
	sub	r3, r3, #1312
	ldmdb	r3, {r2-r3}
	adds	r1, r8, r2
	ldr	r0, .L17+64
	add	r0, fp, r0
	str	r1, [r0]
	adc	r3, r9, r3
	ldr	r2, .L17+68
	add	r2, fp, r2
	str	r3, [r2]
	sub	r3, fp, #798720
	sub	r3, r3, #28
	sub	r3, r3, #1312
	mov	r4, r3
	adr	r3, .L17
	ldmia	r3, {r2-r3}
	ldr	r1, .L17+64
	add	r1, fp, r1
	ldmia	r1, {r0-r1}
	bl	__aeabi_ldivmod
	stmdb	r4, {r2-r3}
	b	.L10
.L11:
	sub	r3, fp, #798720
	sub	r3, r3, #28
	sub	r3, r3, #1328
	ldmdb	r3, {r2-r3}
	subs	r1, r2, #1
	ldr	r0, .L17+72
	add	r0, fp, r0
	str	r1, [r0]
	sbc	r3, r3, #0
	sub	r2, fp, #798720
	sub	r2, r2, #1408
	str	r3, [r2]
	sub	r3, fp, #798720
	sub	r3, r3, #28
	sub	r3, r3, #1328
	ldmia	r3, {r2-r3}
	ldr	r1, .L17+72
	add	r1, fp, r1
	ldmia	r1, {r0-r1}
	cmp	r2, r0
	sbcs	r3, r3, r1
	blt	.L13
.L10:
	sub	r3, fp, #798720
	sub	r3, r3, #28
	sub	r3, r3, #1312
	ldmdb	r3, {r2-r3}
	ldr	r0, .L17+24
	bl	printf
	mov	r0, #10
	bl	putchar
.L2:
	sub	r3, fp, #798720
	sub	r3, r3, #28
	ldr	r1, [r3, #-1340]
	sub	r2, r1, #1
	sub	r3, fp, #798720
	sub	r3, r3, #28
	str	r2, [r3, #-1340]
	cmp	r1, #0
	bne	.L14
	mov	r3, #0
	ldr	r2, .L17+8
	ldr	r1, [r2]
	ldr	r2, [fp, #-32]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L16
	bl	__stack_chk_fail
.L16:
	mov	r0, r3
	sub	sp, fp, #24
	@ sp needed
	pop	{r4, r6, r7, r8, r9, fp, pc}
.L18:
	.align	3
.L17:
	.word	100001
	.word	0
	.word	.LC2
	.word	-800060
	.word	.LC0
	.word	-800056
	.word	.LC1
	.word	-800140
	.word	-800136
	.word	-800100
	.word	-800148
	.word	-800108
	.word	-800104
	.word	-800156
	.word	-800152
	.word	-800116
	.word	-800124
	.word	-800120
	.word	-800132
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
