	.file	"64200502.c"
	.intel_syntax noprefix
	.text
	.globl	inputbuf
	.bss
	.align 32
	.type	inputbuf, @object
	.size	inputbuf, 11000000
inputbuf:
	.zero	11000000
	.globl	outputbuf
	.align 32
	.type	outputbuf, @object
	.size	outputbuf, 11000000
outputbuf:
	.zero	11000000
	.globl	ibf
	.section	.data.rel.local,"aw"
	.align 8
	.type	ibf, @object
	.size	ibf, 8
ibf:
	.quad	inputbuf
	.globl	obf
	.align 8
	.type	obf, @object
	.size	obf, 8
obf:
	.quad	outputbuf
	.globl	iseof
	.bss
	.align 4
	.type	iseof, @object
	.size	iseof, 4
iseof:
	.zero	4
	.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, 16
	mov	DWORD PTR -8[rbp], 0
	mov	rax, QWORD PTR stdin[rip]
	mov	rcx, rax
	mov	edx, 1
	mov	esi, 11000000
	lea	rdi, inputbuf[rip]
	call	fread@PLT
.L4:
	call	getint
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR iseof[rip]
	test	eax, eax
	jne	.L7
	mov	eax, DWORD PTR -4[rbp]
	xor	DWORD PTR -8[rbp], eax
	jmp	.L4
.L7:
	nop
	mov	eax, DWORD PTR -8[rbp]
	mov	edi, eax
	call	putint
	mov	rax, QWORD PTR stdout[rip]
	mov	rdx, QWORD PTR obf[rip]
	lea	rcx, outputbuf[rip]
	sub	rdx, rcx
	mov	rsi, rdx
	mov	rcx, rax
	mov	edx, 1
	lea	rdi, outputbuf[rip]
	call	fwrite@PLT
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.globl	judge
	.type	judge, @function
judge:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -4[rbp], edi
	cmp	DWORD PTR -4[rbp], 9
	jg	.L9
	mov	eax, 1
	jmp	.L10
.L9:
	cmp	DWORD PTR -4[rbp], 99
	jg	.L11
	mov	eax, 2
	jmp	.L10
.L11:
	cmp	DWORD PTR -4[rbp], 999
	jg	.L12
	mov	eax, 3
	jmp	.L10
.L12:
	cmp	DWORD PTR -4[rbp], 9999
	jg	.L13
	mov	eax, 4
	jmp	.L10
.L13:
	cmp	DWORD PTR -4[rbp], 99999
	jg	.L14
	mov	eax, 5
	jmp	.L10
.L14:
	cmp	DWORD PTR -4[rbp], 999999
	jg	.L15
	mov	eax, 6
	jmp	.L10
.L15:
	cmp	DWORD PTR -4[rbp], 9999999
	jg	.L16
	mov	eax, 7
	jmp	.L10
.L16:
	cmp	DWORD PTR -4[rbp], 99999999
	jg	.L17
	mov	eax, 8
	jmp	.L10
.L17:
	cmp	DWORD PTR -4[rbp], 999999999
	jg	.L18
	mov	eax, 9
	jmp	.L10
.L18:
	mov	eax, 10
.L10:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	judge, .-judge
	.globl	putint
	.type	putint, @function
putint:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 24
	mov	DWORD PTR -20[rbp], edi
	cmp	DWORD PTR -20[rbp], 0
	jne	.L20
	mov	rax, QWORD PTR obf[rip]
	lea	rdx, 1[rax]
	mov	QWORD PTR obf[rip], rdx
	mov	BYTE PTR [rax], 48
	jmp	.L21
.L20:
	cmp	DWORD PTR -20[rbp], 0
	jns	.L22
	mov	rax, QWORD PTR obf[rip]
	lea	rdx, 1[rax]
	mov	QWORD PTR obf[rip], rdx
	mov	BYTE PTR [rax], 45
	neg	DWORD PTR -20[rbp]
.L22:
	mov	eax, DWORD PTR -20[rbp]
	mov	edi, eax
	call	judge
	mov	rdx, QWORD PTR obf[rip]
	cdqe
	add	rax, rdx
	mov	QWORD PTR obf[rip], rax
	mov	rax, QWORD PTR obf[rip]
	mov	QWORD PTR -8[rbp], rax
	jmp	.L23
.L24:
	mov	eax, DWORD PTR -20[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 -12[rbp], eax
	mov	eax, DWORD PTR -12[rbp]
	mov	edx, -10
	imul	eax, edx
	mov	edx, DWORD PTR -20[rbp]
	add	eax, edx
	add	eax, 48
	sub	QWORD PTR -8[rbp], 1
	mov	edx, eax
	mov	rax, QWORD PTR -8[rbp]
	mov	BYTE PTR [rax], dl
	mov	eax, DWORD PTR -12[rbp]
	mov	DWORD PTR -20[rbp], eax
.L23:
	cmp	DWORD PTR -20[rbp], 0
	jne	.L24
.L21:
	mov	rax, QWORD PTR obf[rip]
	lea	rdx, 1[rax]
	mov	QWORD PTR obf[rip], rdx
	mov	BYTE PTR [rax], 10
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	putint, .-putint
	.globl	getint
	.type	getint, @function
getint:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	DWORD PTR -8[rbp], 0
	mov	DWORD PTR -4[rbp], 0
	jmp	.L26
.L28:
	mov	rax, QWORD PTR ibf[rip]
	add	rax, 1
	mov	QWORD PTR ibf[rip], rax
.L26:
	call	__ctype_b_loc@PLT
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR ibf[rip]
	movzx	eax, BYTE PTR [rax]
	movsx	rax, al
	add	rax, rax
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	and	eax, 2048
	test	eax, eax
	jne	.L27
	mov	rax, QWORD PTR ibf[rip]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 45
	je	.L27
	mov	rax, QWORD PTR ibf[rip]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L28
.L27:
	mov	rax, QWORD PTR ibf[rip]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 45
	jne	.L29
	mov	DWORD PTR -4[rbp], 1
	jmp	.L30
.L29:
	mov	rax, QWORD PTR ibf[rip]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L31
	mov	DWORD PTR iseof[rip], 1
	mov	eax, 0
	jmp	.L32
.L31:
	mov	rax, QWORD PTR ibf[rip]
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	sub	eax, 48
	mov	DWORD PTR -8[rbp], eax
.L30:
	mov	rdx, QWORD PTR ibf[rip]
	lea	rax, 1[rdx]
	mov	QWORD PTR ibf[rip], rax
	mov	rax, QWORD PTR obf[rip]
	lea	rcx, 1[rax]
	mov	QWORD PTR obf[rip], rcx
	movzx	edx, BYTE PTR [rdx]
	mov	BYTE PTR [rax], dl
	jmp	.L33
.L34:
	mov	edx, DWORD PTR -8[rbp]
	mov	eax, edx
	sal	eax, 2
	add	eax, edx
	add	eax, eax
	mov	edx, eax
	mov	rax, QWORD PTR ibf[rip]
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	add	eax, edx
	sub	eax, 48
	mov	DWORD PTR -8[rbp], eax
	mov	rdx, QWORD PTR ibf[rip]
	lea	rax, 1[rdx]
	mov	QWORD PTR ibf[rip], rax
	mov	rax, QWORD PTR obf[rip]
	lea	rcx, 1[rax]
	mov	QWORD PTR obf[rip], rcx
	movzx	edx, BYTE PTR [rdx]
	mov	BYTE PTR [rax], dl
.L33:
	call	__ctype_b_loc@PLT
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR ibf[rip]
	movzx	eax, BYTE PTR [rax]
	movsx	rax, al
	add	rax, rax
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	and	eax, 2048
	test	eax, eax
	jne	.L34
	mov	rax, QWORD PTR obf[rip]
	lea	rdx, 1[rax]
	mov	QWORD PTR obf[rip], rdx
	mov	BYTE PTR [rax], 10
	cmp	DWORD PTR -4[rbp], 0
	je	.L35
	mov	eax, DWORD PTR -8[rbp]
	neg	eax
	jmp	.L32
.L35:
	mov	eax, DWORD PTR -8[rbp]
.L32:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	getint, .-getint
	.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	"64200502.c"
	.text
	.comm	inputbuf,11000000,4
	.comm	outputbuf,11000000,4
	.global	ibf
	.data
	.align	2
	.type	ibf, %object
	.size	ibf, 4
ibf:
	.word	inputbuf
	.global	obf
	.align	2
	.type	obf, %object
	.size	obf, 4
obf:
	.word	outputbuf
	.global	iseof
	.bss
	.align	2
	.type	iseof, %object
	.size	iseof, 4
iseof:
	.space	4
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	mov	r3, #0
	str	r3, [fp, #-12]
	ldr	r3, .L8
	ldr	r3, [r3]
	mov	r2, #1
	ldr	r1, .L8+4
	ldr	r0, .L8+8
	bl	fread
.L4:
	bl	getint
	str	r0, [fp, #-8]
	ldr	r3, .L8+12
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L7
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-8]
	eor	r3, r3, r2
	str	r3, [fp, #-12]
	b	.L4
.L7:
	nop
	ldr	r0, [fp, #-12]
	bl	putint
	ldr	r3, .L8+16
	ldr	r3, [r3]
	ldr	r2, .L8+20
	sub	r3, r3, r2
	mov	r1, r3
	ldr	r3, .L8+24
	ldr	r3, [r3]
	mov	r2, #1
	ldr	r0, .L8+20
	bl	fwrite
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L9:
	.align	2
.L8:
	.word	stdin
	.word	11000000
	.word	inputbuf
	.word	iseof
	.word	obf
	.word	outputbuf
	.word	stdout
	.size	main, .-main
	.align	2
	.global	judge
	.syntax unified
	.arm
	.fpu softvfp
	.type	judge, %function
judge:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #9
	bgt	.L11
	mov	r3, #1
	b	.L12
.L11:
	ldr	r3, [fp, #-8]
	cmp	r3, #99
	bgt	.L13
	mov	r3, #2
	b	.L12
.L13:
	ldr	r3, [fp, #-8]
	cmp	r3, #1000
	bge	.L14
	mov	r3, #3
	b	.L12
.L14:
	ldr	r3, [fp, #-8]
	ldr	r2, .L21
	cmp	r3, r2
	bgt	.L15
	mov	r3, #4
	b	.L12
.L15:
	ldr	r3, [fp, #-8]
	ldr	r2, .L21+4
	cmp	r3, r2
	bge	.L16
	mov	r3, #5
	b	.L12
.L16:
	ldr	r3, [fp, #-8]
	ldr	r2, .L21+8
	cmp	r3, r2
	bge	.L17
	mov	r3, #6
	b	.L12
.L17:
	ldr	r3, [fp, #-8]
	ldr	r2, .L21+12
	cmp	r3, r2
	bgt	.L18
	mov	r3, #7
	b	.L12
.L18:
	ldr	r3, [fp, #-8]
	ldr	r2, .L21+16
	cmp	r3, r2
	bgt	.L19
	mov	r3, #8
	b	.L12
.L19:
	ldr	r3, [fp, #-8]
	ldr	r2, .L21+20
	cmp	r3, r2
	bgt	.L20
	mov	r3, #9
	b	.L12
.L20:
	mov	r3, #10
.L12:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L22:
	.align	2
.L21:
	.word	9999
	.word	100000
	.word	1000000
	.word	9999999
	.word	99999999
	.word	999999999
	.size	judge, .-judge
	.align	2
	.global	putint
	.syntax unified
	.arm
	.fpu softvfp
	.type	putint, %function
putint:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L24
	ldr	r3, .L29
	ldr	r3, [r3]
	add	r2, r3, #1
	ldr	r1, .L29
	str	r2, [r1]
	mov	r2, #48
	strb	r2, [r3]
	b	.L25
.L24:
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bge	.L26
	ldr	r3, .L29
	ldr	r3, [r3]
	add	r2, r3, #1
	ldr	r1, .L29
	str	r2, [r1]
	mov	r2, #45
	strb	r2, [r3]
	ldr	r3, [fp, #-16]
	rsb	r3, r3, #0
	str	r3, [fp, #-16]
.L26:
	ldr	r0, [fp, #-16]
	bl	judge
	mov	r2, r0
	ldr	r3, .L29
	ldr	r3, [r3]
	add	r3, r3, r2
	ldr	r2, .L29
	str	r3, [r2]
	ldr	r3, .L29
	ldr	r3, [r3]
	str	r3, [fp, #-12]
	b	.L27
.L28:
	ldr	r3, [fp, #-16]
	ldr	r2, .L29+4
	smull	r1, r2, r3, r2
	asr	r2, r2, #2
	asr	r3, r3, #31
	sub	r3, r2, r3
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	and	r3, r3, #255
	mov	r2, r3
	lsl	r2, r2, #5
	sub	r2, r2, r3
	lsl	r2, r2, #2
	sub	r3, r2, r3
	lsl	r3, r3, #1
	and	r2, r3, #255
	ldr	r3, [fp, #-16]
	and	r3, r3, #255
	add	r3, r2, r3
	and	r3, r3, #255
	ldr	r2, [fp, #-12]
	sub	r2, r2, #1
	str	r2, [fp, #-12]
	add	r3, r3, #48
	and	r2, r3, #255
	ldr	r3, [fp, #-12]
	strb	r2, [r3]
	ldr	r3, [fp, #-8]
	str	r3, [fp, #-16]
.L27:
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L28
.L25:
	ldr	r3, .L29
	ldr	r3, [r3]
	add	r2, r3, #1
	ldr	r1, .L29
	str	r2, [r1]
	mov	r2, #10
	strb	r2, [r3]
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L30:
	.align	2
.L29:
	.word	obf
	.word	1717986919
	.size	putint, .-putint
	.align	2
	.global	getint
	.syntax unified
	.arm
	.fpu softvfp
	.type	getint, %function
getint:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	mov	r3, #0
	str	r3, [fp, #-12]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L32
.L34:
	ldr	r3, .L42
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L42
	str	r3, [r2]
.L32:
	bl	__ctype_b_loc
	mov	r3, r0
	ldr	r2, [r3]
	ldr	r3, .L42
	ldr	r3, [r3]
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #1
	add	r3, r2, r3
	ldrh	r3, [r3]
	and	r3, r3, #2048
	cmp	r3, #0
	bne	.L33
	ldr	r3, .L42
	ldr	r3, [r3]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #45
	beq	.L33
	ldr	r3, .L42
	ldr	r3, [r3]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L34
.L33:
	ldr	r3, .L42
	ldr	r3, [r3]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #45
	bne	.L35
	mov	r3, #1
	str	r3, [fp, #-8]
	b	.L36
.L35:
	ldr	r3, .L42
	ldr	r3, [r3]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L37
	ldr	r3, .L42+4
	mov	r2, #1
	str	r2, [r3]
	mov	r3, #0
	b	.L38
.L37:
	ldr	r3, .L42
	ldr	r3, [r3]
	ldrb	r3, [r3]	@ zero_extendqisi2
	sub	r3, r3, #48
	str	r3, [fp, #-12]
.L36:
	ldr	r3, .L42
	ldr	r2, [r3]
	add	r3, r2, #1
	ldr	r1, .L42
	str	r3, [r1]
	ldr	r3, .L42+8
	ldr	r3, [r3]
	add	r1, r3, #1
	ldr	r0, .L42+8
	str	r1, [r0]
	ldrb	r2, [r2]	@ zero_extendqisi2
	strb	r2, [r3]
	b	.L39
.L40:
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	mov	r2, r3
	ldr	r3, .L42
	ldr	r3, [r3]
	ldrb	r3, [r3]	@ zero_extendqisi2
	add	r3, r2, r3
	sub	r3, r3, #48
	str	r3, [fp, #-12]
	ldr	r3, .L42
	ldr	r2, [r3]
	add	r3, r2, #1
	ldr	r1, .L42
	str	r3, [r1]
	ldr	r3, .L42+8
	ldr	r3, [r3]
	add	r1, r3, #1
	ldr	r0, .L42+8
	str	r1, [r0]
	ldrb	r2, [r2]	@ zero_extendqisi2
	strb	r2, [r3]
.L39:
	bl	__ctype_b_loc
	mov	r3, r0
	ldr	r2, [r3]
	ldr	r3, .L42
	ldr	r3, [r3]
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #1
	add	r3, r2, r3
	ldrh	r3, [r3]
	and	r3, r3, #2048
	cmp	r3, #0
	bne	.L40
	ldr	r3, .L42+8
	ldr	r3, [r3]
	add	r2, r3, #1
	ldr	r1, .L42+8
	str	r2, [r1]
	mov	r2, #10
	strb	r2, [r3]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L41
	ldr	r3, [fp, #-12]
	rsb	r3, r3, #0
	b	.L38
.L41:
	ldr	r3, [fp, #-12]
.L38:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L43:
	.align	2
.L42:
	.word	ibf
	.word	iseof
	.word	obf
	.size	getint, .-getint
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
