	.file	"687881.c"
	.intel_syntax noprefix
	.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
	sub	rsp, 160
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -148[rbp], 0
	mov	DWORD PTR -112[rbp], 2
	mov	DWORD PTR -108[rbp], 4
	mov	DWORD PTR -104[rbp], 8
	mov	DWORD PTR -100[rbp], 5
	mov	DWORD PTR -96[rbp], 10
	mov	DWORD PTR -92[rbp], 9
	mov	DWORD PTR -88[rbp], 7
	mov	DWORD PTR -84[rbp], 3
	mov	DWORD PTR -80[rbp], 6
	mov	DWORD PTR -132[rbp], 0
	mov	DWORD PTR -140[rbp], 0
	mov	DWORD PTR -144[rbp], 1
	jmp	.L2
.L4:
	call	getchar@PLT
	mov	BYTE PTR -149[rbp], al
	cmp	BYTE PTR -149[rbp], 47
	jle	.L3
	movsx	edx, BYTE PTR -149[rbp]
	mov	eax, 58
	sub	eax, edx
	test	eax, eax
	jle	.L3
	movsx	eax, BYTE PTR -149[rbp]
	mov	edx, DWORD PTR -144[rbp]
	lea	ecx, -1[rdx]
	lea	edx, -48[rax]
	movsx	rax, ecx
	mov	DWORD PTR -64[rbp+rax*4], edx
	add	DWORD PTR -144[rbp], 1
	jmp	.L2
.L3:
	mov	edi, 48
	call	putchar@PLT
.L2:
	cmp	DWORD PTR -144[rbp], 10
	jle	.L4
	mov	edx, DWORD PTR -64[rbp]
	mov	eax, edx
	sal	eax, 2
	add	eax, edx
	add	eax, eax
	mov	edx, eax
	mov	eax, DWORD PTR -60[rbp]
	add	eax, edx
	mov	DWORD PTR -128[rbp], eax
	mov	eax, DWORD PTR -128[rbp]
	cdq
	shr	edx, 30
	add	eax, edx
	and	eax, 3
	sub	eax, edx
	mov	DWORD PTR -124[rbp], eax
	mov	eax, DWORD PTR -56[rbp]
	mov	DWORD PTR -132[rbp], eax
	mov	eax, DWORD PTR -56[rbp]
	cmp	eax, 20
	jle	.L5
	mov	eax, DWORD PTR -56[rbp]
	sub	eax, 20
	mov	DWORD PTR -132[rbp], eax
.L5:
	mov	eax, DWORD PTR -56[rbp]
	cmp	eax, 40
	jle	.L6
	mov	eax, DWORD PTR -56[rbp]
	sub	eax, 40
	mov	DWORD PTR -132[rbp], eax
.L6:
	mov	edx, DWORD PTR -132[rbp]
	mov	eax, edx
	sal	eax, 2
	add	eax, edx
	add	eax, eax
	mov	edx, eax
	mov	eax, DWORD PTR -52[rbp]
	add	eax, edx
	mov	DWORD PTR -120[rbp], eax
	mov	edx, DWORD PTR -48[rbp]
	mov	eax, edx
	sal	eax, 2
	add	eax, edx
	add	eax, eax
	mov	edx, eax
	mov	eax, DWORD PTR -44[rbp]
	add	eax, edx
	mov	DWORD PTR -116[rbp], eax
	cmp	DWORD PTR -120[rbp], 2
	je	.L7
	cmp	DWORD PTR -120[rbp], 22
	je	.L7
	cmp	DWORD PTR -120[rbp], 42
	jne	.L8
.L7:
	cmp	DWORD PTR -116[rbp], 29
	jne	.L8
	cmp	DWORD PTR -124[rbp], 0
	je	.L8
	mov	edi, 48
	call	putchar@PLT
	add	DWORD PTR -140[rbp], 1
.L8:
	cmp	DWORD PTR -120[rbp], 40
	jle	.L9
	cmp	DWORD PTR -128[rbp], 16
	jle	.L9
	mov	edi, 48
	call	putchar@PLT
	add	DWORD PTR -140[rbp], 1
.L9:
	mov	DWORD PTR -136[rbp], 0
	mov	DWORD PTR -148[rbp], 1
	jmp	.L10
.L11:
	mov	eax, DWORD PTR -148[rbp]
	sub	eax, 1
	cdqe
	mov	edx, DWORD PTR -64[rbp+rax*4]
	mov	eax, DWORD PTR -148[rbp]
	sub	eax, 1
	cdqe
	mov	eax, DWORD PTR -112[rbp+rax*4]
	imul	eax, edx
	add	DWORD PTR -136[rbp], eax
	add	DWORD PTR -148[rbp], 1
.L10:
	cmp	DWORD PTR -148[rbp], 9
	jle	.L11
	mov	edx, DWORD PTR -136[rbp]
	movsx	rax, edx
	imul	rax, rax, 780903145
	shr	rax, 32
	sar	eax
	mov	esi, edx
	sar	esi, 31
	sub	eax, esi
	mov	ecx, eax
	mov	eax, ecx
	sal	eax, 2
	add	eax, ecx
	add	eax, eax
	add	eax, ecx
	sub	edx, eax
	mov	DWORD PTR -136[rbp], edx
	cmp	DWORD PTR -136[rbp], 10
	jne	.L12
	mov	DWORD PTR -136[rbp], 0
.L12:
	mov	eax, DWORD PTR -28[rbp]
	cmp	DWORD PTR -136[rbp], eax
	je	.L13
	mov	edi, 48
	call	putchar@PLT
	add	DWORD PTR -140[rbp], 1
.L13:
	cmp	DWORD PTR -140[rbp], 0
	jle	.L14
	mov	edi, 48
	call	putchar@PLT
	jmp	.L15
.L14:
	mov	edi, 49
	call	putchar@PLT
.L15:
	mov	eax, 0
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L17
	call	__stack_chk_fail@PLT
.L17:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.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	"687881.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.word	2
	.word	4
	.word	8
	.word	5
	.word	10
	.word	9
	.word	7
	.word	3
	.word	6
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 128
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #128
	ldr	r3, .L18
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-128]
	ldr	r3, .L18+4
	sub	ip, fp, #92
	mov	lr, r3
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldr	r3, [lr]
	str	r3, [ip]
	mov	r3, #0
	str	r3, [fp, #-112]
	mov	r3, #0
	str	r3, [fp, #-120]
	mov	r3, #1
	str	r3, [fp, #-124]
	b	.L2
.L4:
	bl	getchar
	mov	r3, r0
	strb	r3, [fp, #-129]
	ldrb	r3, [fp, #-129]	@ zero_extendqisi2
	cmp	r3, #47
	bls	.L3
	ldrb	r3, [fp, #-129]	@ zero_extendqisi2
	rsb	r3, r3, #58
	cmp	r3, #0
	ble	.L3
	ldrb	r2, [fp, #-129]	@ zero_extendqisi2
	ldr	r3, [fp, #-124]
	sub	r3, r3, #1
	sub	r2, r2, #48
	lsl	r3, r3, #2
	sub	r1, fp, #4
	add	r3, r1, r3
	str	r2, [r3, #-52]
	ldr	r3, [fp, #-124]
	add	r3, r3, #1
	str	r3, [fp, #-124]
	b	.L2
.L3:
	mov	r0, #48
	bl	putchar
.L2:
	ldr	r3, [fp, #-124]
	cmp	r3, #10
	ble	.L4
	ldr	r2, [fp, #-56]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	mov	r2, r3
	ldr	r3, [fp, #-52]
	add	r3, r2, r3
	str	r3, [fp, #-108]
	ldr	r3, [fp, #-108]
	rsbs	r2, r3, #0
	and	r3, r3, #3
	and	r2, r2, #3
	rsbpl	r3, r2, #0
	str	r3, [fp, #-104]
	ldr	r3, [fp, #-48]
	str	r3, [fp, #-112]
	ldr	r3, [fp, #-48]
	cmp	r3, #20
	ble	.L5
	ldr	r3, [fp, #-48]
	sub	r3, r3, #20
	str	r3, [fp, #-112]
.L5:
	ldr	r3, [fp, #-48]
	cmp	r3, #40
	ble	.L6
	ldr	r3, [fp, #-48]
	sub	r3, r3, #40
	str	r3, [fp, #-112]
.L6:
	ldr	r2, [fp, #-112]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	mov	r2, r3
	ldr	r3, [fp, #-44]
	add	r3, r2, r3
	str	r3, [fp, #-100]
	ldr	r2, [fp, #-40]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	mov	r2, r3
	ldr	r3, [fp, #-36]
	add	r3, r2, r3
	str	r3, [fp, #-96]
	ldr	r3, [fp, #-100]
	cmp	r3, #2
	beq	.L7
	ldr	r3, [fp, #-100]
	cmp	r3, #22
	beq	.L7
	ldr	r3, [fp, #-100]
	cmp	r3, #42
	bne	.L8
.L7:
	ldr	r3, [fp, #-96]
	cmp	r3, #29
	bne	.L8
	ldr	r3, [fp, #-104]
	cmp	r3, #0
	beq	.L8
	mov	r0, #48
	bl	putchar
	ldr	r3, [fp, #-120]
	add	r3, r3, #1
	str	r3, [fp, #-120]
.L8:
	ldr	r3, [fp, #-100]
	cmp	r3, #40
	ble	.L9
	ldr	r3, [fp, #-108]
	cmp	r3, #16
	ble	.L9
	mov	r0, #48
	bl	putchar
	ldr	r3, [fp, #-120]
	add	r3, r3, #1
	str	r3, [fp, #-120]
.L9:
	mov	r3, #0
	str	r3, [fp, #-116]
	mov	r3, #1
	str	r3, [fp, #-128]
	b	.L10
.L11:
	ldr	r3, [fp, #-128]
	sub	r3, r3, #1
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r2, [r3, #-52]
	ldr	r3, [fp, #-128]
	sub	r3, r3, #1
	lsl	r3, r3, #2
	sub	r1, fp, #4
	add	r3, r1, r3
	ldr	r3, [r3, #-88]
	mul	r3, r2, r3
	ldr	r2, [fp, #-116]
	add	r3, r2, r3
	str	r3, [fp, #-116]
	ldr	r3, [fp, #-128]
	add	r3, r3, #1
	str	r3, [fp, #-128]
.L10:
	ldr	r3, [fp, #-128]
	cmp	r3, #9
	ble	.L11
	ldr	r2, [fp, #-116]
	ldr	r3, .L18+8
	smull	r1, r3, r2, r3
	asr	r1, r3, #1
	asr	r3, r2, #31
	sub	r1, r1, r3
	mov	r3, r1
	lsl	r3, r3, #2
	add	r3, r3, r1
	lsl	r3, r3, #1
	add	r3, r3, r1
	sub	r3, r2, r3
	str	r3, [fp, #-116]
	ldr	r3, [fp, #-116]
	cmp	r3, #10
	bne	.L12
	mov	r3, #0
	str	r3, [fp, #-116]
.L12:
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-116]
	cmp	r2, r3
	beq	.L13
	mov	r0, #48
	bl	putchar
	ldr	r3, [fp, #-120]
	add	r3, r3, #1
	str	r3, [fp, #-120]
.L13:
	ldr	r3, [fp, #-120]
	cmp	r3, #0
	ble	.L14
	mov	r0, #48
	bl	putchar
	b	.L15
.L14:
	mov	r0, #49
	bl	putchar
.L15:
	mov	r3, #0
	ldr	r2, .L18
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L17
	bl	__stack_chk_fail
.L17:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L19:
	.align	2
.L18:
	.word	.LC1
	.word	.LC0
	.word	780903145
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
