	.file	"93888786.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"%d"
	.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, -1998848[rsp]
.LPSRL0:
	sub	rsp, 4096
	or	DWORD PTR [rsp], 0
	cmp	rsp, r11
	jne	.LPSRL0
	sub	rsp, 1216
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -2000056[rbp]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rax, -2000016[rbp]
	mov	edx, 2000000
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	BYTE PTR -2000016[rbp], 49
	mov	DWORD PTR -2000048[rbp], 1
	jmp	.L2
.L10:
	mov	DWORD PTR -2000052[rbp], 0
	mov	DWORD PTR -2000044[rbp], 0
.L9:
	mov	eax, DWORD PTR -2000044[rbp]
	cdqe
	movzx	eax, BYTE PTR -2000016[rbp+rax]
	movsx	eax, al
	sub	eax, 48
	mov	DWORD PTR -2000024[rbp], eax
	mov	eax, DWORD PTR -2000024[rbp]
	imul	eax, DWORD PTR -2000048[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -2000052[rbp]
	add	eax, edx
	mov	DWORD PTR -2000020[rbp], eax
	mov	edx, DWORD PTR -2000020[rbp]
	movsx	rax, edx
	imul	rax, rax, 1717986919
	shr	rax, 32
	sar	eax, 2
	mov	esi, edx
	sar	esi, 31
	sub	eax, esi
	mov	ecx, eax
	mov	eax, ecx
	sal	eax, 2
	add	eax, ecx
	add	eax, eax
	sub	edx, eax
	mov	DWORD PTR -2000024[rbp], edx
	mov	eax, DWORD PTR -2000024[rbp]
	add	eax, 48
	mov	edx, eax
	mov	eax, DWORD PTR -2000044[rbp]
	cdqe
	mov	BYTE PTR -2000016[rbp+rax], dl
	mov	eax, DWORD PTR -2000020[rbp]
	movsx	rdx, eax
	imul	rdx, rdx, 1717986919
	shr	rdx, 32
	sar	edx, 2
	sar	eax, 31
	mov	ecx, eax
	mov	eax, edx
	sub	eax, ecx
	mov	DWORD PTR -2000052[rbp], eax
	cmp	DWORD PTR -2000052[rbp], 0
	jne	.L3
	mov	eax, DWORD PTR -2000044[rbp]
	add	eax, 1
	cdqe
	movzx	eax, BYTE PTR -2000016[rbp+rax]
	test	al, al
	je	.L15
.L3:
	cmp	DWORD PTR -2000052[rbp], 0
	je	.L5
	mov	eax, DWORD PTR -2000044[rbp]
	add	eax, 1
	cdqe
	movzx	eax, BYTE PTR -2000016[rbp+rax]
	test	al, al
	jne	.L5
	mov	eax, DWORD PTR -2000044[rbp]
	mov	DWORD PTR -2000040[rbp], eax
.L8:
	mov	edx, DWORD PTR -2000052[rbp]
	movsx	rax, edx
	imul	rax, rax, 1717986919
	shr	rax, 32
	sar	eax, 2
	mov	esi, edx
	sar	esi, 31
	sub	eax, esi
	mov	ecx, eax
	mov	eax, ecx
	sal	eax, 2
	add	eax, ecx
	add	eax, eax
	mov	ecx, edx
	sub	ecx, eax
	mov	eax, ecx
	lea	edx, 48[rax]
	mov	eax, DWORD PTR -2000040[rbp]
	add	eax, 1
	cdqe
	mov	BYTE PTR -2000016[rbp+rax], dl
	mov	eax, DWORD PTR -2000052[rbp]
	movsx	rdx, eax
	imul	rdx, rdx, 1717986919
	shr	rdx, 32
	sar	edx, 2
	sar	eax, 31
	mov	ecx, eax
	mov	eax, edx
	sub	eax, ecx
	mov	DWORD PTR -2000052[rbp], eax
	cmp	DWORD PTR -2000052[rbp], 0
	jne	.L6
	mov	eax, DWORD PTR -2000040[rbp]
	add	eax, 2
	cdqe
	mov	BYTE PTR -2000016[rbp+rax], 0
	nop
	jmp	.L4
.L6:
	add	DWORD PTR -2000040[rbp], 1
	jmp	.L8
.L5:
	add	DWORD PTR -2000044[rbp], 1
	jmp	.L9
.L15:
	nop
.L4:
	add	DWORD PTR -2000048[rbp], 1
.L2:
	mov	eax, DWORD PTR -2000056[rbp]
	cmp	DWORD PTR -2000048[rbp], eax
	jle	.L10
	lea	rax, -2000016[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	DWORD PTR -2000032[rbp], eax
	mov	DWORD PTR -2000036[rbp], 0
	jmp	.L11
.L12:
	mov	eax, DWORD PTR -2000032[rbp]
	sub	eax, DWORD PTR -2000036[rbp]
	sub	eax, 1
	mov	DWORD PTR -2000028[rbp], eax
	mov	eax, DWORD PTR -2000028[rbp]
	cdqe
	movzx	eax, BYTE PTR -2000016[rbp+rax]
	movsx	eax, al
	mov	edi, eax
	call	putchar@PLT
	add	DWORD PTR -2000036[rbp], 1
.L11:
	mov	eax, DWORD PTR -2000036[rbp]
	cmp	eax, DWORD PTR -2000032[rbp]
	jl	.L12
	mov	eax, 0
	mov	rdi, QWORD PTR -8[rbp]
	sub	rdi, QWORD PTR fs:40
	je	.L14
	call	__stack_chk_fail@PLT
.L14:
	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	"93888786.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%d\000"
	.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 = 2000048
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #1998848
	sub	sp, sp, #1200
	ldr	r3, .L16
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L16+4
	sub	r2, fp, #4
	add	r3, r2, r3
	mov	r1, r3
	ldr	r0, .L16+8
	bl	__isoc99_scanf
	ldr	r3, .L16+12
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r2, .L16+16
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #1998848
	sub	r3, r3, #4
	mov	r2, #49
	strb	r2, [r3, #-1156]
	sub	r3, fp, #1998848
	sub	r3, r3, #4
	mov	r2, r3
	mov	r3, #1
	str	r3, [r2, #-1188]
	b	.L2
.L10:
	sub	r3, fp, #1998848
	sub	r3, r3, #4
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-1192]
	sub	r3, fp, #1998848
	sub	r3, r3, #4
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-1184]
.L9:
	sub	r3, fp, #1998848
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #1998848
	sub	r3, r3, #4
	ldr	r3, [r3, #-1184]
	add	r3, r2, r3
	sub	r3, r3, #1152
	sub	r3, r3, #4
	ldrb	r3, [r3]	@ zero_extendqisi2
	sub	r2, fp, #1998848
	sub	r2, r2, #4
	sub	r3, r3, #48
	str	r3, [r2, #-1164]
	sub	r3, fp, #1998848
	sub	r3, r3, #4
	sub	r2, fp, #1998848
	sub	r2, r2, #4
	ldr	r3, [r3, #-1164]
	ldr	r2, [r2, #-1188]
	mul	r3, r2, r3
	sub	r2, fp, #1998848
	sub	r2, r2, #4
	mov	r1, r2
	sub	r2, fp, #1998848
	sub	r2, r2, #4
	ldr	r2, [r2, #-1192]
	add	r3, r2, r3
	str	r3, [r1, #-1160]
	sub	r3, fp, #1998848
	sub	r3, r3, #4
	mov	r0, r3
	sub	r3, fp, #1998848
	sub	r3, r3, #4
	ldr	r2, [r3, #-1160]
	ldr	r3, .L16+20
	smull	r1, r3, r2, r3
	asr	r1, r3, #2
	asr	r3, r2, #31
	sub	r1, r1, r3
	mov	r3, r1
	lsl	r3, r3, #2
	add	r3, r3, r1
	lsl	r3, r3, #1
	sub	r3, r2, r3
	str	r3, [r0, #-1164]
	sub	r3, fp, #1998848
	sub	r3, r3, #4
	ldr	r3, [r3, #-1164]
	and	r3, r3, #255
	add	r3, r3, #48
	and	r2, r3, #255
	sub	r3, fp, #1998848
	sub	r3, r3, #4
	mov	r1, r3
	sub	r3, fp, #1998848
	sub	r3, r3, #4
	ldr	r3, [r3, #-1184]
	add	r3, r1, r3
	sub	r3, r3, #1152
	sub	r3, r3, #4
	strb	r2, [r3]
	sub	r3, fp, #1998848
	sub	r3, r3, #4
	mov	r1, r3
	sub	r3, fp, #1998848
	sub	r3, r3, #4
	ldr	r3, [r3, #-1160]
	ldr	r2, .L16+20
	smull	r0, r2, r3, r2
	asr	r2, r2, #2
	asr	r3, r3, #31
	sub	r3, r2, r3
	str	r3, [r1, #-1192]
	sub	r3, fp, #1998848
	sub	r3, r3, #4
	ldr	r3, [r3, #-1192]
	cmp	r3, #0
	bne	.L3
	sub	r3, fp, #1998848
	sub	r3, r3, #4
	ldr	r3, [r3, #-1184]
	add	r3, r3, #1
	sub	r2, fp, #1998848
	sub	r2, r2, #4
	add	r3, r2, r3
	ldrb	r3, [r3, #-1156]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L15
.L3:
	sub	r3, fp, #1998848
	sub	r3, r3, #4
	ldr	r3, [r3, #-1192]
	cmp	r3, #0
	beq	.L5
	sub	r3, fp, #1998848
	sub	r3, r3, #4
	ldr	r3, [r3, #-1184]
	add	r3, r3, #1
	sub	r2, fp, #1998848
	sub	r2, r2, #4
	add	r3, r2, r3
	ldrb	r3, [r3, #-1156]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L5
	sub	r3, fp, #1998848
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #1998848
	sub	r3, r3, #4
	ldr	r3, [r3, #-1184]
	str	r3, [r2, #-1180]
.L8:
	sub	r3, fp, #1998848
	sub	r3, r3, #4
	ldr	r1, [r3, #-1192]
	ldr	r3, .L16+20
	smull	r2, r3, r1, r3
	asr	r2, r3, #2
	asr	r3, r1, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	sub	r2, r1, r3
	and	r2, r2, #255
	sub	r3, fp, #1998848
	sub	r3, r3, #4
	ldr	r3, [r3, #-1180]
	add	r3, r3, #1
	add	r2, r2, #48
	and	r2, r2, #255
	sub	r1, fp, #1998848
	sub	r1, r1, #4
	add	r3, r1, r3
	strb	r2, [r3, #-1156]
	sub	r3, fp, #1998848
	sub	r3, r3, #4
	mov	r1, r3
	sub	r3, fp, #1998848
	sub	r3, r3, #4
	ldr	r3, [r3, #-1192]
	ldr	r2, .L16+20
	smull	r0, r2, r3, r2
	asr	r2, r2, #2
	asr	r3, r3, #31
	sub	r3, r2, r3
	str	r3, [r1, #-1192]
	sub	r3, fp, #1998848
	sub	r3, r3, #4
	ldr	r3, [r3, #-1192]
	cmp	r3, #0
	bne	.L6
	sub	r3, fp, #1998848
	sub	r3, r3, #4
	ldr	r3, [r3, #-1180]
	add	r3, r3, #2
	sub	r2, fp, #1998848
	sub	r2, r2, #4
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3, #-1156]
	nop
	b	.L4
.L6:
	sub	r3, fp, #1998848
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #1998848
	sub	r3, r3, #4
	ldr	r3, [r3, #-1180]
	add	r3, r3, #1
	str	r3, [r2, #-1180]
	b	.L8
.L5:
	sub	r3, fp, #1998848
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #1998848
	sub	r3, r3, #4
	ldr	r3, [r3, #-1184]
	add	r3, r3, #1
	str	r3, [r2, #-1184]
	b	.L9
.L15:
	nop
.L4:
	sub	r3, fp, #1998848
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #1998848
	sub	r3, r3, #4
	ldr	r3, [r3, #-1188]
	add	r3, r3, #1
	str	r3, [r2, #-1188]
.L2:
	sub	r3, fp, #1998848
	sub	r3, r3, #4
	ldr	r3, [r3, #-1196]
	sub	r2, fp, #1998848
	sub	r2, r2, #4
	ldr	r2, [r2, #-1188]
	cmp	r2, r3
	ble	.L10
	ldr	r3, .L16+12
	sub	r2, fp, #4
	add	r3, r2, r3
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	sub	r2, fp, #1998848
	sub	r2, r2, #4
	str	r3, [r2, #-1172]
	sub	r3, fp, #1998848
	sub	r3, r3, #4
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-1176]
	b	.L11
.L12:
	sub	r3, fp, #1998848
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #1998848
	sub	r3, r3, #4
	ldr	r2, [r2, #-1172]
	ldr	r3, [r3, #-1176]
	sub	r3, r2, r3
	sub	r2, fp, #1998848
	sub	r2, r2, #4
	sub	r3, r3, #1
	str	r3, [r2, #-1168]
	sub	r3, fp, #1998848
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #1998848
	sub	r3, r3, #4
	ldr	r3, [r3, #-1168]
	add	r3, r2, r3
	sub	r3, r3, #1152
	sub	r3, r3, #4
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r0, r3
	bl	putchar
	sub	r3, fp, #1998848
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #1998848
	sub	r3, r3, #4
	ldr	r3, [r3, #-1176]
	add	r3, r3, #1
	str	r3, [r2, #-1176]
.L11:
	sub	r3, fp, #1998848
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #1998848
	sub	r3, r3, #4
	ldr	r2, [r2, #-1176]
	ldr	r3, [r3, #-1172]
	cmp	r2, r3
	blt	.L12
	mov	r3, #0
	ldr	r2, .L16
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L14
	bl	__stack_chk_fail
.L14:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L17:
	.align	2
.L16:
	.word	.LC1
	.word	-2000044
	.word	.LC0
	.word	-2000004
	.word	2000000
	.word	1717986919
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
