	.file	"452156.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"%s %s"
.LC1:
	.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, -28672[rsp]
.LPSRL0:
	sub	rsp, 4096
	or	DWORD PTR [rsp], 0
	cmp	rsp, r11
	jne	.LPSRL0
	sub	rsp, 1424
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -30064[rbp], 0
	mov	QWORD PTR -30056[rbp], 0
	lea	rax, -30048[rbp]
	mov	edx, 9994
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	lea	rdx, -10032[rbp]
	lea	rax, -20048[rbp]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rax, -20048[rbp]
	mov	rdi, rax
	call	strlen@PLT
	sub	eax, 1
	mov	DWORD PTR -30084[rbp], eax
	lea	rax, -10032[rbp]
	mov	rdi, rax
	call	strlen@PLT
	sub	eax, 1
	mov	DWORD PTR -30080[rbp], eax
	mov	DWORD PTR -30076[rbp], 0
	mov	DWORD PTR -30072[rbp], 0
	mov	BYTE PTR -22[rbp], 48
	movzx	eax, BYTE PTR -22[rbp]
	mov	BYTE PTR -10038[rbp], al
.L9:
	mov	eax, DWORD PTR -30084[rbp]
	cdqe
	movzx	eax, BYTE PTR -20048[rbp+rax]
	movzx	eax, al
	lea	edx, -48[rax]
	mov	eax, DWORD PTR -30080[rbp]
	cdqe
	movzx	eax, BYTE PTR -10032[rbp+rax]
	movzx	eax, al
	add	eax, edx
	lea	edx, -48[rax]
	mov	eax, DWORD PTR -30072[rbp]
	add	edx, eax
	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	edx, ecx
	mov	eax, DWORD PTR -30076[rbp]
	cdqe
	mov	BYTE PTR -30064[rbp+rax], dl
	mov	eax, DWORD PTR -30084[rbp]
	cdqe
	movzx	eax, BYTE PTR -20048[rbp+rax]
	movzx	eax, al
	lea	edx, -48[rax]
	mov	eax, DWORD PTR -30080[rbp]
	cdqe
	movzx	eax, BYTE PTR -10032[rbp+rax]
	movzx	eax, al
	add	eax, edx
	lea	edx, -48[rax]
	mov	eax, DWORD PTR -30072[rbp]
	add	eax, edx
	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 -30072[rbp], eax
	cmp	DWORD PTR -30084[rbp], 0
	je	.L2
	cmp	DWORD PTR -30084[rbp], 10010
	jne	.L3
.L2:
	cmp	DWORD PTR -30080[rbp], 0
	je	.L4
	cmp	DWORD PTR -30080[rbp], 10010
	je	.L4
.L3:
	cmp	DWORD PTR -30084[rbp], 0
	jle	.L5
	cmp	DWORD PTR -30084[rbp], 10010
	je	.L5
	sub	DWORD PTR -30084[rbp], 1
	jmp	.L6
.L5:
	mov	DWORD PTR -30084[rbp], 10010
.L6:
	cmp	DWORD PTR -30080[rbp], 0
	jle	.L7
	cmp	DWORD PTR -30080[rbp], 10010
	je	.L7
	sub	DWORD PTR -30080[rbp], 1
	jmp	.L8
.L7:
	mov	DWORD PTR -30080[rbp], 10010
.L8:
	add	DWORD PTR -30076[rbp], 1
	jmp	.L9
.L4:
	cmp	DWORD PTR -30072[rbp], 0
	je	.L10
	add	DWORD PTR -30076[rbp], 1
	mov	eax, DWORD PTR -30072[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -30076[rbp]
	cdqe
	mov	BYTE PTR -30064[rbp+rax], dl
.L10:
	mov	eax, DWORD PTR -30076[rbp]
	mov	DWORD PTR -30068[rbp], eax
	jmp	.L11
.L12:
	mov	eax, DWORD PTR -30068[rbp]
	cdqe
	movzx	eax, BYTE PTR -30064[rbp+rax]
	movzx	eax, al
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	sub	DWORD PTR -30068[rbp], 1
.L11:
	cmp	DWORD PTR -30068[rbp], 0
	jns	.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	"452156.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%s %s\000"
	.align	2
.LC1:
	.ascii	"%d\000"
	.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 = 30064
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #29952
	sub	sp, sp, #112
	ldr	r3, .L15
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #28672
	sub	r3, r3, #4
	mov	r2, #0
	str	r2, [r3, #-1368]
	sub	r3, r3, #1360
	sub	r3, r3, #4
	ldr	r2, .L15+4
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r2, fp, #9984
	sub	r2, r2, #4
	sub	r2, r2, #32
	sub	r3, fp, #19968
	sub	r3, r3, #4
	sub	r3, r3, #60
	mov	r1, r3
	ldr	r0, .L15+8
	bl	__isoc99_scanf
	sub	r3, fp, #19968
	sub	r3, r3, #4
	sub	r3, r3, #60
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	sub	r3, r3, #1
	sub	r2, fp, #28672
	sub	r2, r2, #4
	str	r3, [r2, #-1388]
	sub	r3, fp, #9984
	sub	r3, r3, #4
	sub	r3, r3, #32
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	sub	r3, r3, #1
	sub	r2, fp, #28672
	sub	r2, r2, #4
	str	r3, [r2, #-1384]
	sub	r3, fp, #28672
	sub	r3, r3, #4
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-1380]
	sub	r3, fp, #28672
	sub	r3, r3, #4
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-1376]
	sub	r3, fp, #8192
	sub	r3, r3, #4
	add	r3, r3, #4096
	mov	r2, #48
	strb	r2, [r3, #4090]
	sub	r3, fp, #8192
	sub	r3, r3, #4
	add	r3, r3, #4096
	ldrb	r2, [r3, #4090]	@ zero_extendqisi2
	sub	r3, fp, #16384
	sub	r3, r3, #4
	add	r3, r3, #4096
	strb	r2, [r3, #2270]
.L9:
	sub	r3, fp, #16384
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #28672
	sub	r3, r3, #4
	ldr	r3, [r3, #-1388]
	add	r3, r2, r3
	sub	r3, r3, #3632
	sub	r3, r3, #12
	ldrb	r3, [r3]	@ zero_extendqisi2
	sub	r3, r3, #48
	sub	r2, fp, #8192
	sub	r2, r2, #4
	mov	r1, r2
	sub	r2, fp, #28672
	sub	r2, r2, #4
	ldr	r2, [r2, #-1384]
	add	r2, r1, r2
	sub	r2, r2, #1824
	ldrb	r2, [r2]	@ zero_extendqisi2
	add	r3, r3, r2
	sub	r2, r3, #48
	sub	r3, fp, #28672
	sub	r3, r3, #4
	ldr	r3, [r3, #-1376]
	add	r1, r2, r3
	ldr	r3, .L15+12
	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, #28672
	sub	r3, r3, #4
	mov	r1, r3
	sub	r3, fp, #28672
	sub	r3, r3, #4
	ldr	r3, [r3, #-1380]
	add	r3, r1, r3
	sub	r3, r3, #1360
	sub	r3, r3, #8
	strb	r2, [r3]
	sub	r3, fp, #16384
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #28672
	sub	r3, r3, #4
	ldr	r3, [r3, #-1388]
	add	r3, r2, r3
	sub	r3, r3, #3632
	sub	r3, r3, #12
	ldrb	r3, [r3]	@ zero_extendqisi2
	sub	r3, r3, #48
	sub	r2, fp, #8192
	sub	r2, r2, #4
	mov	r1, r2
	sub	r2, fp, #28672
	sub	r2, r2, #4
	ldr	r2, [r2, #-1384]
	add	r2, r1, r2
	sub	r2, r2, #1824
	ldrb	r2, [r2]	@ zero_extendqisi2
	add	r3, r3, r2
	sub	r2, r3, #48
	sub	r3, fp, #28672
	sub	r3, r3, #4
	ldr	r3, [r3, #-1376]
	add	r3, r2, r3
	sub	r2, fp, #28672
	sub	r2, r2, #4
	mov	r1, r2
	ldr	r2, .L15+12
	smull	r0, r2, r3, r2
	asr	r2, r2, #2
	asr	r3, r3, #31
	sub	r3, r2, r3
	str	r3, [r1, #-1376]
	sub	r3, fp, #28672
	sub	r3, r3, #4
	ldr	r3, [r3, #-1388]
	cmp	r3, #0
	beq	.L2
	sub	r3, fp, #28672
	sub	r3, r3, #4
	ldr	r3, [r3, #-1388]
	ldr	r2, .L15+16
	cmp	r3, r2
	bne	.L3
.L2:
	sub	r3, fp, #28672
	sub	r3, r3, #4
	ldr	r3, [r3, #-1384]
	cmp	r3, #0
	beq	.L4
	sub	r3, fp, #28672
	sub	r3, r3, #4
	ldr	r3, [r3, #-1384]
	ldr	r2, .L15+16
	cmp	r3, r2
	beq	.L4
.L3:
	sub	r3, fp, #28672
	sub	r3, r3, #4
	ldr	r3, [r3, #-1388]
	cmp	r3, #0
	ble	.L5
	sub	r3, fp, #28672
	sub	r3, r3, #4
	ldr	r3, [r3, #-1388]
	ldr	r2, .L15+16
	cmp	r3, r2
	beq	.L5
	sub	r3, fp, #28672
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #28672
	sub	r3, r3, #4
	ldr	r3, [r3, #-1388]
	sub	r3, r3, #1
	str	r3, [r2, #-1388]
	b	.L6
.L5:
	sub	r3, fp, #28672
	sub	r3, r3, #4
	mov	r2, r3
	ldr	r3, .L15+16
	str	r3, [r2, #-1388]
.L6:
	sub	r3, fp, #28672
	sub	r3, r3, #4
	ldr	r3, [r3, #-1384]
	cmp	r3, #0
	ble	.L7
	sub	r3, fp, #28672
	sub	r3, r3, #4
	ldr	r3, [r3, #-1384]
	ldr	r2, .L15+16
	cmp	r3, r2
	beq	.L7
	sub	r3, fp, #28672
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #28672
	sub	r3, r3, #4
	ldr	r3, [r3, #-1384]
	sub	r3, r3, #1
	str	r3, [r2, #-1384]
	b	.L8
.L7:
	sub	r3, fp, #28672
	sub	r3, r3, #4
	mov	r2, r3
	ldr	r3, .L15+16
	str	r3, [r2, #-1384]
.L8:
	sub	r3, fp, #28672
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #28672
	sub	r3, r3, #4
	ldr	r3, [r3, #-1380]
	add	r3, r3, #1
	str	r3, [r2, #-1380]
	b	.L9
.L4:
	sub	r3, fp, #28672
	sub	r3, r3, #4
	ldr	r3, [r3, #-1376]
	cmp	r3, #0
	beq	.L10
	sub	r3, fp, #28672
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #28672
	sub	r3, r3, #4
	ldr	r3, [r3, #-1380]
	add	r3, r3, #1
	str	r3, [r2, #-1380]
	sub	r3, fp, #28672
	sub	r3, r3, #4
	ldr	r3, [r3, #-1376]
	and	r2, r3, #255
	sub	r3, fp, #28672
	sub	r3, r3, #4
	mov	r1, r3
	sub	r3, fp, #28672
	sub	r3, r3, #4
	ldr	r3, [r3, #-1380]
	add	r3, r1, r3
	sub	r3, r3, #1360
	sub	r3, r3, #8
	strb	r2, [r3]
.L10:
	sub	r3, fp, #28672
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #28672
	sub	r3, r3, #4
	ldr	r3, [r3, #-1380]
	str	r3, [r2, #-1372]
	b	.L11
.L12:
	sub	r3, fp, #28672
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #28672
	sub	r3, r3, #4
	ldr	r3, [r3, #-1372]
	add	r3, r2, r3
	sub	r3, r3, #1360
	sub	r3, r3, #8
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L15+20
	bl	printf
	sub	r3, fp, #28672
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #28672
	sub	r3, r3, #4
	ldr	r3, [r3, #-1372]
	sub	r3, r3, #1
	str	r3, [r2, #-1372]
.L11:
	sub	r3, fp, #28672
	sub	r3, r3, #4
	ldr	r3, [r3, #-1372]
	cmp	r3, #0
	bge	.L12
	mov	r3, #0
	ldr	r2, .L15
	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}
.L16:
	.align	2
.L15:
	.word	.LC2
	.word	10006
	.word	.LC0
	.word	1717986919
	.word	10010
	.word	.LC1
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
