Given the following C code and unoptimized assembly code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c

#include <stdio.h>
#include <math.h>
int main()
{   long long n;
    scanf("%lld",&n);
    int dig=log10(n);
    int head=n/(pow(10,dig));
    if(n==9||n==99||n==999||n==9999||n==99999||
        n==999999||n==9999999||n==99999999||n==999999999||n==9999999999||
        n==99999999999||n==999999999999||n==9999999999999||n==99999999999999||
        n==999999999999999||
        n==8||
        n==89||n==899||n==8999||n==89999||
        n==899999||n==8999999||n==89999999||n==899999999||n==8999999999||
        n==89999999999||n==899999999999||n==8999999999999||n==89999999999999||
        n==899999999999999||
        n==7||
        n==79||n==799||n==7999||n==79999||
        n==799999||n==7999999||n==79999999||n==799999999||n==7999999999||
        n==79999999999||n==799999999999||n==7999999999999||n==79999999999999||
        n==799999999999999||
        n==6||n==69||n==699||n==6999||n==69999||
        n==699999||n==6999999||n==69999999||n==699999999||n==6999999999||
        n==69999999999||n==699999999999||n==6999999999999||n==69999999999999||
        n==699999999999999||
        n==5||
        n==59||n==599||n==5999||n==59999||
        n==599999||n==5999999||n==59999999||n==599999999||n==5999999999||
        n==59999999999||n==599999999999||n==5999999999999||n==59999999999999||
        n==599999999999999||
        n==4||
        n==49||n==499||n==4999||n==49999||
        n==499999||n==4999999||n==499999999||n==499999999||n==4999999999||
        n==49999999999||n==499999999999||n==4999999999999||n==49999999999999||
        n==499999999999999||
        n==3||
        n==39||n==399||n==3999||n==39999||
        n==399999||n==3999999||n==39999999||n==399999999||n==3999999999||
        n==39999999999||n==399999999999||n==3999999999999||n==39999999999999||
        n==399999999999999||
        n==2||
        n==29||n==299||n==2999||n==29999||
        n==299999||n==2999999||n==29999999||n==299999999||n==2999999999||
        n==29999999999||n==299999999999||n==2999999999999||n==29999999999999||
        n==299999999999999||
        n==1||
        n==19||n==199||n==1999||n==19999||
        n==199999||n==1999999||n==19999999||n==199999999||n==1999999999||
        n==19999999999||n==199999999999||n==1999999999999||n==19999999999999||
        n==199999999999999){
            dig*=9;
            dig+=head;
        }else{
    dig*=9;
    dig+=(head-1);
        }
        
        printf("%d",dig);
    

    return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%lld"
.LC2:
	.string	"%d"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$48, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-16(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	-16(%rbp), %rax
	pxor	%xmm3, %xmm3
	cvtsi2sdq	%rax, %xmm3
	movq	%xmm3, %rax
	movq	%rax, %xmm0
	call	log10@PLT
	cvttsd2sil	%xmm0, %eax
	movl	%eax, -24(%rbp)
	movq	-16(%rbp), %rax
	pxor	%xmm2, %xmm2
	cvtsi2sdq	%rax, %xmm2
	movsd	%xmm2, -40(%rbp)
	pxor	%xmm0, %xmm0
	cvtsi2sdl	-24(%rbp), %xmm0
	movq	.LC1(%rip), %rax
	movapd	%xmm0, %xmm1
	movq	%rax, %xmm0
	call	pow@PLT
	movsd	-40(%rbp), %xmm1
	divsd	%xmm0, %xmm1
	cvttsd2sil	%xmm1, %eax
	movl	%eax, -20(%rbp)
	movq	-16(%rbp), %rax
	cmpq	$9, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$99, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$999, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$9999, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$99999, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$999999, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$9999999, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$99999999, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$999999999, %rax
	je	.L2
	movq	-16(%rbp), %rax
	movabsq	$9999999999, %rdx
	cmpq	%rdx, %rax
	je	.L2
	movq	-16(%rbp), %rax
	movabsq	$99999999999, %rdx
	cmpq	%rdx, %rax
	je	.L2
	movq	-16(%rbp), %rax
	movabsq	$999999999999, %rdx
	cmpq	%rdx, %rax
	je	.L2
	movq	-16(%rbp), %rax
	movabsq	$9999999999999, %rdx
	cmpq	%rdx, %rax
	je	.L2
	movq	-16(%rbp), %rax
	movabsq	$99999999999999, %rdx
	cmpq	%rdx, %rax
	je	.L2
	movq	-16(%rbp), %rax
	movabsq	$999999999999999, %rdx
	cmpq	%rdx, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$8, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$89, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$899, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$8999, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$89999, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$899999, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$8999999, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$89999999, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$899999999, %rax
	je	.L2
	movq	-16(%rbp), %rax
	movabsq	$8999999999, %rdx
	cmpq	%rdx, %rax
	je	.L2
	movq	-16(%rbp), %rax
	movabsq	$89999999999, %rdx
	cmpq	%rdx, %rax
	je	.L2
	movq	-16(%rbp), %rax
	movabsq	$899999999999, %rdx
	cmpq	%rdx, %rax
	je	.L2
	movq	-16(%rbp), %rax
	movabsq	$8999999999999, %rdx
	cmpq	%rdx, %rax
	je	.L2
	movq	-16(%rbp), %rax
	movabsq	$89999999999999, %rdx
	cmpq	%rdx, %rax
	je	.L2
	movq	-16(%rbp), %rax
	movabsq	$899999999999999, %rdx
	cmpq	%rdx, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$7, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$79, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$799, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$7999, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$79999, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$799999, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$7999999, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$79999999, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$799999999, %rax
	je	.L2
	movq	-16(%rbp), %rax
	movabsq	$7999999999, %rdx
	cmpq	%rdx, %rax
	je	.L2
	movq	-16(%rbp), %rax
	movabsq	$79999999999, %rdx
	cmpq	%rdx, %rax
	je	.L2
	movq	-16(%rbp), %rax
	movabsq	$799999999999, %rdx
	cmpq	%rdx, %rax
	je	.L2
	movq	-16(%rbp), %rax
	movabsq	$7999999999999, %rdx
	cmpq	%rdx, %rax
	je	.L2
	movq	-16(%rbp), %rax
	movabsq	$79999999999999, %rdx
	cmpq	%rdx, %rax
	je	.L2
	movq	-16(%rbp), %rax
	movabsq	$799999999999999, %rdx
	cmpq	%rdx, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$6, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$69, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$699, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$6999, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$69999, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$699999, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$6999999, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$69999999, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$699999999, %rax
	je	.L2
	movq	-16(%rbp), %rax
	movabsq	$6999999999, %rdx
	cmpq	%rdx, %rax
	je	.L2
	movq	-16(%rbp), %rax
	movabsq	$69999999999, %rdx
	cmpq	%rdx, %rax
	je	.L2
	movq	-16(%rbp), %rax
	movabsq	$699999999999, %rdx
	cmpq	%rdx, %rax
	je	.L2
	movq	-16(%rbp), %rax
	movabsq	$6999999999999, %rdx
	cmpq	%rdx, %rax
	je	.L2
	movq	-16(%rbp), %rax
	movabsq	$69999999999999, %rdx
	cmpq	%rdx, %rax
	je	.L2
	movq	-16(%rbp), %rax
	movabsq	$699999999999999, %rdx
	cmpq	%rdx, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$5, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$59, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$599, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$5999, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$59999, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$599999, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$5999999, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$59999999, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$599999999, %rax
	je	.L2
	movq	-16(%rbp), %rax
	movabsq	$5999999999, %rdx
	cmpq	%rdx, %rax
	je	.L2
	movq	-16(%rbp), %rax
	movabsq	$59999999999, %rdx
	cmpq	%rdx, %rax
	je	.L2
	movq	-16(%rbp), %rax
	movabsq	$599999999999, %rdx
	cmpq	%rdx, %rax
	je	.L2
	movq	-16(%rbp), %rax
	movabsq	$5999999999999, %rdx
	cmpq	%rdx, %rax
	je	.L2
	movq	-16(%rbp), %rax
	movabsq	$59999999999999, %rdx
	cmpq	%rdx, %rax
	je	.L2
	movq	-16(%rbp), %rax
	movabsq	$599999999999999, %rdx
	cmpq	%rdx, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$4, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$49, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$499, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$4999, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$49999, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$499999, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$4999999, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$499999999, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$499999999, %rax
	je	.L2
	movq	-16(%rbp), %rax
	movabsq	$4999999999, %rdx
	cmpq	%rdx, %rax
	je	.L2
	movq	-16(%rbp), %rax
	movabsq	$49999999999, %rdx
	cmpq	%rdx, %rax
	je	.L2
	movq	-16(%rbp), %rax
	movabsq	$499999999999, %rdx
	cmpq	%rdx, %rax
	je	.L2
	movq	-16(%rbp), %rax
	movabsq	$4999999999999, %rdx
	cmpq	%rdx, %rax
	je	.L2
	movq	-16(%rbp), %rax
	movabsq	$49999999999999, %rdx
	cmpq	%rdx, %rax
	je	.L2
	movq	-16(%rbp), %rax
	movabsq	$499999999999999, %rdx
	cmpq	%rdx, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$3, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$39, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$399, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$3999, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$39999, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$399999, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$3999999, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$39999999, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$399999999, %rax
	je	.L2
	movq	-16(%rbp), %rax
	movl	$3999999999, %edx
	cmpq	%rdx, %rax
	je	.L2
	movq	-16(%rbp), %rax
	movabsq	$39999999999, %rdx
	cmpq	%rdx, %rax
	je	.L2
	movq	-16(%rbp), %rax
	movabsq	$399999999999, %rdx
	cmpq	%rdx, %rax
	je	.L2
	movq	-16(%rbp), %rax
	movabsq	$3999999999999, %rdx
	cmpq	%rdx, %rax
	je	.L2
	movq	-16(%rbp), %rax
	movabsq	$39999999999999, %rdx
	cmpq	%rdx, %rax
	je	.L2
	movq	-16(%rbp), %rax
	movabsq	$399999999999999, %rdx
	cmpq	%rdx, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$2, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$29, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$299, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$2999, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$29999, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$299999, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$2999999, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$29999999, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$299999999, %rax
	je	.L2
	movq	-16(%rbp), %rax
	movl	$2999999999, %edx
	cmpq	%rdx, %rax
	je	.L2
	movq	-16(%rbp), %rax
	movabsq	$29999999999, %rdx
	cmpq	%rdx, %rax
	je	.L2
	movq	-16(%rbp), %rax
	movabsq	$299999999999, %rdx
	cmpq	%rdx, %rax
	je	.L2
	movq	-16(%rbp), %rax
	movabsq	$2999999999999, %rdx
	cmpq	%rdx, %rax
	je	.L2
	movq	-16(%rbp), %rax
	movabsq	$29999999999999, %rdx
	cmpq	%rdx, %rax
	je	.L2
	movq	-16(%rbp), %rax
	movabsq	$299999999999999, %rdx
	cmpq	%rdx, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$1, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$19, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$199, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$1999, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$19999, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$199999, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$1999999, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$19999999, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$199999999, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$1999999999, %rax
	je	.L2
	movq	-16(%rbp), %rax
	movabsq	$19999999999, %rdx
	cmpq	%rdx, %rax
	je	.L2
	movq	-16(%rbp), %rax
	movabsq	$199999999999, %rdx
	cmpq	%rdx, %rax
	je	.L2
	movq	-16(%rbp), %rax
	movabsq	$1999999999999, %rdx
	cmpq	%rdx, %rax
	je	.L2
	movq	-16(%rbp), %rax
	movabsq	$19999999999999, %rdx
	cmpq	%rdx, %rax
	je	.L2
	movq	-16(%rbp), %rax
	movabsq	$199999999999999, %rdx
	cmpq	%rdx, %rax
	jne	.L3
.L2:
	movl	-24(%rbp), %edx
	movl	%edx, %eax
	sall	$3, %eax
	addl	%edx, %eax
	movl	%eax, -24(%rbp)
	movl	-20(%rbp), %eax
	addl	%eax, -24(%rbp)
	jmp	.L4
.L3:
	movl	-24(%rbp), %edx
	movl	%edx, %eax
	sall	$3, %eax
	addl	%edx, %eax
	movl	%eax, -24(%rbp)
	movl	-20(%rbp), %eax
	subl	$1, %eax
	addl	%eax, -24(%rbp)
.L4:
	movl	-24(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L6
	call	__stack_chk_fail@PLT
.L6:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC1:
	.long	0
	.long	1076101120
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.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:
```

Only output the optimized assembly code. Do not include any other text. Do not write any comments in the assembly code. Wrap the assembly code in ```assembly``` tags.
user
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%lld"
.LC2:
	.string	"%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	leaq	.LC0(%rip), %rdi
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	subq	$40, %rsp
	.cfi_def_cfa_offset 64
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movq	16(%rsp), %rbx
	pxor	%xmm2, %xmm2
	cvtsi2sdq	%rbx, %xmm2
	movapd	%xmm2, %xmm0
	movsd	%xmm2, 8(%rsp)
	call	log10@PLT
	pxor	%xmm1, %xmm1
	cvttsd2sil	%xmm0, %ebp
	movsd	.LC1(%rip), %xmm0
	cvtsi2sdl	%ebp, %xmm1
	call	pow@PLT
	movsd	8(%rsp), %xmm2
	divsd	%xmm0, %xmm2
	cvttsd2sil	%xmm2, %edx
	cmpq	$9, %rbx
	je	.L2
	cmpq	$99, %rbx
	je	.L2
	cmpq	$199999999, %rbx
	je	.L2
	jg	.L3
	cmpq	$59999, %rbx
	je	.L2
	jle	.L232
	cmpq	$3999999, %rbx
	je	.L2
	jle	.L233
	cmpq	$29999999, %rbx
	je	.L2
	jle	.L234
	cmpq	$79999999, %rbx
	je	.L2
	jle	.L235
	cmpq	$89999999, %rbx
	je	.L2
	cmpq	$99999999, %rbx
	je	.L2
.L9:
	leal	0(%rbp,%rbp,8), %ebp
	leal	-1(%rdx,%rbp), %edx
	jmp	.L36
.L3:
	movabsq	$699999999999, %rax
	cmpq	%rax, %rbx
	je	.L2
	jle	.L236
	movabsq	$49999999999999, %rax
	cmpq	%rax, %rbx
	je	.L2
	jle	.L237
	movabsq	$399999999999999, %rax
	cmpq	%rax, %rbx
	je	.L2
	jle	.L238
	movabsq	$799999999999999, %rax
	cmpq	%rax, %rbx
	je	.L2
	jle	.L239
	movabsq	$899999999999999, %rax
	cmpq	%rax, %rbx
	je	.L2
	movabsq	$999999999999999, %rax
	cmpq	%rax, %rbx
	jne	.L9
	.p2align 4,,10
	.p2align 3
.L2:
	leal	0(%rbp,%rbp,8), %eax
	addl	%eax, %edx
.L36:
	xorl	%eax, %eax
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L240
	addq	$40, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
.L236:
	.cfi_restore_state
	movabsq	$8999999999, %rax
	cmpq	%rax, %rbx
	je	.L2
	jle	.L241
	movabsq	$79999999999, %rax
	cmpq	%rax, %rbx
	je	.L2
	jle	.L242
	movabsq	$299999999999, %rax
	cmpq	%rax, %rbx
	je	.L2
	jle	.L243
	movabsq	$499999999999, %rax
	cmpq	%rax, %rbx
	je	.L2
	movabsq	$599999999999, %rax
	cmpq	%rax, %rbx
	je	.L2
	movabsq	$399999999999, %rax
	cmpq	%rax, %rbx
	jne	.L9
	jmp	.L2
.L232:
	cmpq	$799, %rbx
	je	.L2
	jle	.L244
	cmpq	$6999, %rbx
	je	.L2
	jle	.L245
	cmpq	$19999, %rbx
	je	.L2
	jle	.L246
	cmpq	$39999, %rbx
	je	.L2
	cmpq	$49999, %rbx
	je	.L2
	cmpq	$29999, %rbx
	jne	.L9
	jmp	.L2
.L233:
	cmpq	$499999, %rbx
	je	.L2
	jle	.L247
	cmpq	$899999, %rbx
	je	.L2
	jle	.L248
	cmpq	$1999999, %rbx
	je	.L2
	cmpq	$2999999, %rbx
	je	.L2
	cmpq	$999999, %rbx
	jne	.L9
	jmp	.L2
.L237:
	movabsq	$5999999999999, %rax
	cmpq	%rax, %rbx
	je	.L2
	jle	.L249
	movabsq	$9999999999999, %rax
	cmpq	%rax, %rbx
	je	.L2
	jle	.L250
	movabsq	$29999999999999, %rax
	cmpq	%rax, %rbx
	je	.L2
	movabsq	$39999999999999, %rax
	cmpq	%rax, %rbx
	je	.L2
	movabsq	$19999999999999, %rax
	cmpq	%rax, %rbx
	jne	.L9
	jmp	.L2
.L244:
	cmpq	$89, %rbx
	jg	.L6
	cmpq	$28, %rbx
	jg	.L7
	cmpq	$8, %rbx
	jg	.L8
	testq	%rbx, %rbx
	jle	.L9
	jmp	.L2
.L8:
	cmpq	$19, %rbx
	jne	.L9
	jmp	.L2
.L241:
	cmpq	$999999999, %rbx
	je	.L2
	jle	.L251
	movabsq	$4999999999, %rax
	cmpq	%rax, %rbx
	je	.L2
	jle	.L252
	movabsq	$6999999999, %rax
	cmpq	%rax, %rbx
	je	.L2
	addq	$1000000000, %rax
	cmpq	%rax, %rbx
	je	.L2
	subq	$2000000000, %rax
	cmpq	%rax, %rbx
	jne	.L9
	jmp	.L2
.L6:
	cmpq	$499, %rbx
	je	.L2
	jle	.L253
	cmpq	$599, %rbx
	je	.L2
	cmpq	$699, %rbx
	jne	.L9
	jmp	.L2
.L234:
	cmpq	$7999999, %rbx
	je	.L2
	jle	.L254
	cmpq	$9999999, %rbx
	je	.L2
	cmpq	$19999999, %rbx
	je	.L2
	cmpq	$8999999, %rbx
	jne	.L9
	jmp	.L2
.L238:
	movabsq	$89999999999999, %rax
	cmpq	%rax, %rbx
	je	.L2
	jle	.L255
	movabsq	$199999999999999, %rax
	cmpq	%rax, %rbx
	je	.L2
	movabsq	$299999999999999, %rax
	cmpq	%rax, %rbx
	je	.L2
	movabsq	$99999999999999, %rax
	cmpq	%rax, %rbx
	jne	.L9
	jmp	.L2
.L242:
	movabsq	$39999999999, %rax
	cmpq	%rax, %rbx
	je	.L2
	jle	.L256
	movabsq	$59999999999, %rax
	cmpq	%rax, %rbx
	je	.L2
	movabsq	$69999999999, %rax
	cmpq	%rax, %rbx
	je	.L2
	movabsq	$49999999999, %rax
	cmpq	%rax, %rbx
	jne	.L9
	jmp	.L2
.L247:
	cmpq	$99999, %rbx
	je	.L2
	jle	.L257
	cmpq	$299999, %rbx
	je	.L2
	cmpq	$399999, %rbx
	je	.L2
	cmpq	$199999, %rbx
	jne	.L9
	jmp	.L2
.L251:
	cmpq	$599999999, %rbx
	je	.L2
	jle	.L258
	cmpq	$799999999, %rbx
	je	.L2
	cmpq	$899999999, %rbx
	je	.L2
	cmpq	$699999999, %rbx
	jne	.L9
	jmp	.L2
.L249:
	movabsq	$1999999999999, %rax
	cmpq	%rax, %rbx
	je	.L2
	jle	.L259
	movabsq	$3999999999999, %rax
	cmpq	%rax, %rbx
	je	.L2
	movabsq	$4999999999999, %rax
	cmpq	%rax, %rbx
	je	.L2
	movabsq	$2999999999999, %rax
	cmpq	%rax, %rbx
	jne	.L9
	jmp	.L2
.L245:
	cmpq	$2999, %rbx
	je	.L2
	jle	.L260
	cmpq	$4999, %rbx
	je	.L2
	cmpq	$5999, %rbx
	je	.L2
	cmpq	$3999, %rbx
	jne	.L9
	jmp	.L2
.L7:
	movabsq	$1154048505100108801, %rax
	leaq	-29(%rbx), %rcx
	shrq	%cl, %rax
	testb	$1, %al
	je	.L9
	jmp	.L2
.L235:
	cmpq	$59999999, %rbx
	je	.L2
	cmpq	$69999999, %rbx
	je	.L2
	cmpq	$39999999, %rbx
	jne	.L9
	jmp	.L2
.L239:
	movabsq	$599999999999999, %rax
	cmpq	%rax, %rbx
	je	.L2
	movabsq	$699999999999999, %rax
	cmpq	%rax, %rbx
	je	.L2
	movabsq	$499999999999999, %rax
	cmpq	%rax, %rbx
	jne	.L9
	jmp	.L2
.L253:
	cmpq	$299, %rbx
	je	.L2
	cmpq	$399, %rbx
	je	.L2
	cmpq	$199, %rbx
	jne	.L9
	jmp	.L2
.L256:
	movabsq	$19999999999, %rax
	cmpq	%rax, %rbx
	je	.L2
	movabsq	$29999999999, %rax
	cmpq	%rax, %rbx
	je	.L2
	movabsq	$9999999999, %rax
	cmpq	%rax, %rbx
	jne	.L9
	jmp	.L2
.L254:
	cmpq	$5999999, %rbx
	je	.L2
	cmpq	$6999999, %rbx
	je	.L2
	cmpq	$4999999, %rbx
	jne	.L9
	jmp	.L2
.L255:
	movabsq	$69999999999999, %rax
	cmpq	%rax, %rbx
	je	.L2
	movabsq	$79999999999999, %rax
	cmpq	%rax, %rbx
	je	.L2
	movabsq	$59999999999999, %rax
	cmpq	%rax, %rbx
	jne	.L9
	jmp	.L2
.L248:
	cmpq	$699999, %rbx
	je	.L2
	cmpq	$799999, %rbx
	je	.L2
	cmpq	$599999, %rbx
	jne	.L9
	jmp	.L2
.L243:
	movabsq	$99999999999, %rax
	cmpq	%rax, %rbx
	je	.L2
	movabsq	$199999999999, %rax
	cmpq	%rax, %rbx
	je	.L2
	movabsq	$89999999999, %rax
	cmpq	%rax, %rbx
	jne	.L9
	jmp	.L2
.L257:
	cmpq	$79999, %rbx
	je	.L2
	cmpq	$89999, %rbx
	je	.L2
	cmpq	$69999, %rbx
	jne	.L9
	jmp	.L2
.L258:
	cmpq	$399999999, %rbx
	je	.L2
	cmpq	$499999999, %rbx
	je	.L2
	cmpq	$299999999, %rbx
	jne	.L9
	jmp	.L2
.L252:
	subq	$2000000000, %rax
	cmpq	%rax, %rbx
	je	.L2
	addq	$1000000000, %rax
	cmpq	%rax, %rbx
	je	.L2
	cmpq	$1999999999, %rbx
	jne	.L9
	jmp	.L2
.L260:
	cmpq	$999, %rbx
	je	.L2
	cmpq	$1999, %rbx
	je	.L2
	cmpq	$899, %rbx
	jne	.L9
	jmp	.L2
.L246:
	cmpq	$8999, %rbx
	je	.L2
	cmpq	$9999, %rbx
	je	.L2
	cmpq	$7999, %rbx
	jne	.L9
	jmp	.L2
.L259:
	movabsq	$899999999999, %rax
	cmpq	%rax, %rbx
	je	.L2
	movabsq	$999999999999, %rax
	cmpq	%rax, %rbx
	je	.L2
	movabsq	$799999999999, %rax
	cmpq	%rax, %rbx
	jne	.L9
	jmp	.L2
.L250:
	movabsq	$7999999999999, %rax
	cmpq	%rax, %rbx
	je	.L2
	movabsq	$8999999999999, %rax
	cmpq	%rax, %rbx
	je	.L2
	movabsq	$6999999999999, %rax
	cmpq	%rax, %rbx
	jne	.L9
	jmp	.L2
.L240:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC1:
	.long	0
	.long	1076101120
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.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:

rule
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%lld"
.LC2:
	.string	"%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	leaq	.LC0(%rip), %rdi
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	subq	$40, %rsp
	.cfi_def_cfa_offset 64
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movq	16(%rsp), %rbx
	pxor	%xmm2, %xmm2
	cvtsi2sdq	%rbx, %xmm2
	movapd	%xmm2, %xmm0
	movsd	%xmm2, 8(%rsp)
	call	log10@PLT
	pxor	%xmm1, %xmm1
	cvttsd2sil	%xmm0, %ebp
	movsd	.LC1(%rip), %xmm0
	cvtsi2sdl	%ebp, %xmm1
	call	pow@PLT
	movsd	8(%rsp), %xmm2
	divsd	%xmm0, %xmm2
	cvttsd2sil	%xmm2, %edx
	cmpq	$9, %rbx
	je	.L2
	cmpq	$99, %rbx
	je	.L2
	cmpq	$199999999, %rbx
	je	.L2
	jg	.L3
	cmpq	$59999, %rbx
	je	.L2
	jle	.L232
	cmpq	$3999999, %rbx
	je	.L2
	jle	.L233
	cmpq	$29999999, %rbx
	je	.L2
	jle	.L234
	cmpq	$79999999, %rbx
	je	.L2
	jle	.L235
	cmpq	$89999999, %rbx
	je	.L2
	cmpq	$99999999, %rbx
	je	.L2
.L9:
	leal	0(%rbp,%rbp,8), %ebp
	leal	-1(%rdx,%rbp), %edx
	jmp	.L36
.L3:
	movabsq	$699999999999, %rax
	cmpq	%rax, %rbx
	je	.L2
	jle	.L236
	movabsq	$49999999999999, %rax
	cmpq	%rax, %rbx
	je	.L2
	jle	.L237
	movabsq	$399999999999999, %rax
	cmpq	%rax, %rbx
	je	.L2
	jle	.L238
	movabsq	$799999999999999, %rax
	cmpq	%rax, %rbx
	je	.L2
	jle	.L239
	movabsq	$899999999999999, %rax
	cmpq	%rax, %rbx
	je	.L2
	movabsq	$999999999999999, %rax
	cmpq	%rax, %rbx
	jne	.L9
	.p2align 4,,10
	.p2align 3
.L2:
	leal	0(%rbp,%rbp,8), %eax
	addl	%eax, %edx
.L36:
	xorl	%eax, %eax
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L240
	addq	$40, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
.L236:
	.cfi_restore_state
	movabsq	$8999999999, %rax
	cmpq	%rax, %rbx
	je	.L2
	jle	.L241
	movabsq	$79999999999, %rax
	cmpq	%rax, %rbx
	je	.L2
	jle	.L242
	movabsq	$299999999999, %rax
	cmpq	%rax, %rbx
	je	.L2
	jle	.L243
	movabsq	$499999999999, %rax
	cmpq	%rax, %rbx
	je	.L2
	movabsq	$599999999999, %rax
	cmpq	%rax, %rbx
	je	.L2
	movabsq	$399999999999, %rax
	cmpq	%rax, %rbx
	jne	.L9
	jmp	.L2
.L232:
	cmpq	$799, %rbx
	je	.L2
	jle	.L244
	cmpq	$6999, %rbx
	je	.L2
	jle	.L245
	cmpq	$19999, %rbx
	je	.L2
	jle	.L246
	cmpq	$39999, %rbx
	je	.L2
	cmpq	$49999, %rbx
	je	.L2
	cmpq	$29999, %rbx
	jne	.L9
	jmp	.L2
.L233:
	cmpq	$499999, %rbx
	je	.L2
	jle	.L247
	cmpq	$899999, %rbx
	je	.L2
	jle	.L248
	cmpq	$1999999, %rbx
	je	.L2
	cmpq	$2999999, %rbx
	je	.L2
	cmpq	$999999, %rbx
	jne	.L9
	jmp	.L2
.L237:
	movabsq	$5999999999999, %rax
	cmpq	%rax, %rbx
	je	.L2
	jle	.L249
	movabsq	$9999999999999, %rax
	cmpq	%rax, %rbx
	je	.L2
	jle	.L250
	movabsq	$29999999999999, %rax
	cmpq	%rax, %rbx
	je	.L2
	movabsq	$39999999999999, %rax
	cmpq	%rax, %rbx
	je	.L2
	movabsq	$19999999999999, %rax
	cmpq	%rax, %rbx
	jne	.L9
	jmp	.L2
.L244:
	cmpq	$89, %rbx
	jg	.L6
	cmpq	$28, %rbx
	jg	.L7
	cmpq	$8, %rbx
	jg	.L8
	testq	%rbx, %rbx
	jle	.L9
	jmp	.L2
.L8:
	cmpq	$19, %rbx
	jne	.L9
	jmp	.L2
.L241:
	cmpq	$999999999, %rbx
	je	.L2
	jle	.L251
	movabsq	$4999999999, %rax
	cmpq	%rax, %rbx
	je	.L2
	jle	.L252
	movabsq	$6999999999, %rax
	cmpq	%rax, %rbx
	je	.L2
	addq	$1000000000, %rax
	cmpq	%rax, %rbx
	je	.L2
	subq	$2000000000, %rax
	cmpq	%rax, %rbx
	jne	.L9
	jmp	.L2
.L6:
	cmpq	$499, %rbx
	je	.L2
	jle	.L253
	cmpq	$599, %rbx
	je	.L2
	cmpq	$699, %rbx
	jne	.L9
	jmp	.L2
.L234:
	cmpq	$7999999, %rbx
	je	.L2
	jle	.L254
	cmpq	$9999999, %rbx
	je	.L2
	cmpq	$19999999, %rbx
	je	.L2
	cmpq	$8999999, %rbx
	jne	.L9
	jmp	.L2
.L238:
	movabsq	$89999999999999, %rax
	cmpq	%rax, %rbx
	je	.L2
	jle	.L255
	movabsq	$199999999999999, %rax
	cmpq	%rax, %rbx
	je	.L2
	movabsq	$299999999999999, %rax
	cmpq	%rax, %rbx
	je	.L2
	movabsq	$99999999999999, %rax
	cmpq	%rax, %rbx
	jne	.L9
	jmp	.L2
.L242:
	movabsq	$39999999999, %rax
	cmpq	%rax, %rbx
	je	.L2
	jle	.L256
	movabsq	$59999999999, %rax
	cmpq	%rax, %rbx
	je	.L2
	movabsq	$69999999999, %rax
	cmpq	%rax, %rbx
	je	.L2
	movabsq	$49999999999, %rax
	cmpq	%rax, %rbx
	jne	.L9
	jmp	.L2
.L247:
	cmpq	$99999, %rbx
	je	.L2
	jle	.L257
	cmpq	$299999, %rbx
	je	.L2
	cmpq	$399999, %rbx
	je	.L2
	cmpq	$199999, %rbx
	jne	.L9
	jmp	.L2
.L251:
	cmpq	$599999999, %rbx
	je	.L2
	jle	.L258
	cmpq	$799999999, %rbx
	je	.L2
	cmpq	$899999999, %rbx
	je	.L2
	cmpq	$699999999, %rbx
	jne	.L9
	jmp	.L2
.L249:
	movabsq	$1999999999999, %rax
	cmpq	%rax, %rbx
	je	.L2
	jle	.L259
	movabsq	$3999999999999, %rax
	cmpq	%rax, %rbx
	je	.L2
	movabsq	$4999999999999, %rax
	cmpq	%rax, %rbx
	je	.L2
	movabsq	$2999999999999, %rax
	cmpq	%rax, %rbx
	jne	.L9
	jmp	.L2
.L245:
	cmpq	$2999, %rbx
	je	.L2
	jle	.L260
	cmpq	$4999, %rbx
	je	.L2
	cmpq	$5999, %rbx
	je	.L2
	cmpq	$3999, %rbx
	jne	.L9
	jmp	.L2
.L7:
	movabsq	$1154048505100108801, %rax
	leaq	-29(%rbx), %rcx
	shrq	%cl, %rax
	testb	$1, %al
	je	.L9
	jmp	.L2
.L235:
	cmpq	$59999999, %rbx
	je	.L2
	cmpq	$69999999, %rbx
	je	.L2
	cmpq	$39999999, %rbx
	jne	.L9
	jmp	.L2
.L239:
	movabsq	$599999999999999, %rax
	cmpq	%rax, %rbx
	je	.L2
	movabsq	$699999999999999, %rax
	cmpq	%rax, %rbx
	je	.L2
	movabsq	$499999999999999, %rax
	cmpq	%rax, %rbx
	jne	.L9
	jmp	.L2
.L253:
	cmpq	$299, %rbx
	je	.L2
	cmpq	$399, %rbx
	je	.L2
	cmpq	$199, %rbx
	jne	.L9
	jmp	.L2
.L256:
	movabsq	$19999999999, %rax
	cmpq	%rax, %rbx
	je	.L2
	movabsq	$29999999999, %rax
	cmpq	%rax, %rbx
	je	.L2
	movabsq	$9999999999, %rax
	cmpq	%rax, %rbx
	jne	.L9
	jmp	.L2
.L254:
	cmpq	$5999999, %rbx
	je	.L2
	cmpq	$6999999, %rbx
	je	.L2
	cmpq	$4999999, %rbx
	jne	.L9
	jmp	.L2
.L255:
	movabsq	$69999999999999, %rax
	cmpq	%rax, %rbx
	je	.L2
	movabsq	$79999999999999, %rax
	cmpq	%rax, %rbx
	je	.L2
	movabsq	$59999999999999, %rax
	cmpq	%rax, %rbx
	jne	.L9
	jmp	.L2
.L248:
	cmpq	$699999, %rbx
	je	.L2
	cmpq	$799999, %rbx
	je	.L2
	cmpq	$599999, %rbx
	jne	.L9
	jmp	.L2
.L243:
	movabsq	$99999999999, %rax
	cmpq	%rax, %rbx
	je	.L2
	movabsq	$199999999999, %rax
	cmpq	%rax, %rbx
	je	.L2
	movabsq	$89999999999, %rax
	cmpq	%rax, %rbx
	jne	.L9
	jmp	.L2
.L257:
	cmpq	$79999, %rbx
	je	.L2
	cmpq	$89999, %rbx
	je	.L2
	cmpq	$69999, %rbx
	jne	.L9
	jmp	.L2
.L258:
	cmpq	$399999999, %rbx
	je	.L2
	cmpq	$499999999, %rbx
	je	.L2
	cmpq	$299999999, %rbx
	jne	.L9
	jmp	.L2
.L252:
	subq	$2000000000, %rax
	cmpq	%rax, %rbx
	je	.L2
	addq	$1000000000, %rax
	cmpq	%rax, %rbx
	je	.L2
	cmpq	$1999999999, %rbx
	jne	.L9
	jmp	.L2
.L260:
	cmpq	$999, %rbx
	je	.L2
	cmpq	$1999, %rbx
	je	.L2
	cmpq	$899, %rbx
	jne	.L9
	jmp	.L2
.L246:
	cmpq	$8999, %rbx
	je	.L2
	cmpq	$9999, %rbx
	je	.L2
	cmpq	$7999, %rbx
	jne	.L9
	jmp	.L2
.L259:
	movabsq	$899999999999, %rax
	cmpq	%rax, %rbx
	je	.L2
	movabsq	$999999999999, %rax
	cmpq	%rax, %rbx
	je	.L2
	movabsq	$799999999999, %rax
	cmpq	%rax, %rbx
	jne	.L9
	jmp	.L2
.L250:
	movabsq	$7999999999999, %rax
	cmpq	%rax, %rbx
	je	.L2
	movabsq	$8999999999999, %rax
	cmpq	%rax, %rbx
	je	.L2
	movabsq	$6999999999999, %rax
	cmpq	%rax, %rbx
	jne	.L9
	jmp	.L2
.L240:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC1:
	.long	0
	.long	1076101120
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.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:


#include <stdio.h>
#include <math.h>
int main()
{   long long n;
    scanf("%lld",&n);
    int dig=log10(n);
    int head=n/(pow(10,dig));
    if(n==9||n==99||n==999||n==9999||n==99999||
        n==999999||n==9999999||n==99999999||n==999999999||n==9999999999||
        n==99999999999||n==999999999999||n==9999999999999||n==99999999999999||
        n==999999999999999||
        n==8||
        n==89||n==899||n==8999||n==89999||
        n==899999||n==8999999||n==89999999||n==899999999||n==8999999999||
        n==89999999999||n==899999999999||n==8999999999999||n==89999999999999||
        n==899999999999999||
        n==7||
        n==79||n==799||n==7999||n==79999||
        n==799999||n==7999999||n==79999999||n==799999999||n==7999999999||
        n==79999999999||n==799999999999||n==7999999999999||n==79999999999999||
        n==799999999999999||
        n==6||n==69||n==699||n==6999||n==69999||
        n==699999||n==6999999||n==69999999||n==699999999||n==6999999999||
        n==69999999999||n==699999999999||n==6999999999999||n==69999999999999||
        n==699999999999999||
        n==5||
        n==59||n==599||n==5999||n==59999||
        n==599999||n==5999999||n==59999999||n==599999999||n==5999999999||
        n==59999999999||n==599999999999||n==5999999999999||n==59999999999999||
        n==599999999999999||
        n==4||
        n==49||n==499||n==4999||n==49999||
        n==499999||n==4999999||n==499999999||n==499999999||n==4999999999||
        n==49999999999||n==499999999999||n==4999999999999||n==49999999999999||
        n==499999999999999||
        n==3||
        n==39||n==399||n==3999||n==39999||
        n==399999||n==3999999||n==39999999||n==399999999||n==3999999999||
        n==39999999999||n==399999999999||n==3999999999999||n==39999999999999||
        n==399999999999999||
        n==2||
        n==29||n==299||n==2999||n==29999||
        n==299999||n==2999999||n==29999999||n==299999999||n==2999999999||
        n==29999999999||n==299999999999||n==2999999999999||n==29999999999999||
        n==299999999999999||
        n==1||
        n==19||n==199||n==1999||n==19999||
        n==199999||n==1999999||n==19999999||n==199999999||n==1999999999||
        n==19999999999||n==199999999999||n==1999999999999||n==19999999999999||
        n==199999999999999){
            dig*=9;
            dig+=head;
        }else{
    dig*=9;
    dig+=(head-1);
        }
        
        printf("%d",dig);
    

    return 0;
}

1265641936938969
 101
 613
 1180
 2005985506723837
 78
 813322357948504
 127248513971408
 46390584841058
 51

135 18 23 27 136 15 133 126 120 13
Given the following C code and unoptimized assembly code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c

#include <stdio.h>
#include <math.h>
int main()
{   long long n;
    scanf("%lld",&n);
    int dig=log10(n);
    int head=n/(pow(10,dig));
    if(n==9||n==99||n==999||n==9999||n==99999||
        n==999999||n==9999999||n==99999999||n==999999999||n==9999999999||
        n==99999999999||n==999999999999||n==9999999999999||n==99999999999999||
        n==999999999999999||
        n==8||
        n==89||n==899||n==8999||n==89999||
        n==899999||n==8999999||n==89999999||n==899999999||n==8999999999||
        n==89999999999||n==899999999999||n==8999999999999||n==89999999999999||
        n==899999999999999||
        n==7||
        n==79||n==799||n==7999||n==79999||
        n==799999||n==7999999||n==79999999||n==799999999||n==7999999999||
        n==79999999999||n==799999999999||n==7999999999999||n==79999999999999||
        n==799999999999999||
        n==6||n==69||n==699||n==6999||n==69999||
        n==699999||n==6999999||n==69999999||n==699999999||n==6999999999||
        n==69999999999||n==699999999999||n==6999999999999||n==69999999999999||
        n==699999999999999||
        n==5||
        n==59||n==599||n==5999||n==59999||
        n==599999||n==5999999||n==59999999||n==599999999||n==5999999999||
        n==59999999999||n==599999999999||n==5999999999999||n==59999999999999||
        n==599999999999999||
        n==4||
        n==49||n==499||n==4999||n==49999||
        n==499999||n==4999999||n==499999999||n==499999999||n==4999999999||
        n==49999999999||n==499999999999||n==4999999999999||n==49999999999999||
        n==499999999999999||
        n==3||
        n==39||n==399||n==3999||n==39999||
        n==399999||n==3999999||n==39999999||n==399999999||n==3999999999||
        n==39999999999||n==399999999999||n==3999999999999||n==39999999999999||
        n==399999999999999||
        n==2||
        n==29||n==299||n==2999||n==29999||
        n==299999||n==2999999||n==29999999||n==299999999||n==2999999999||
        n==29999999999||n==299999999999||n==2999999999999||n==29999999999999||
        n==299999999999999||
        n==1||
        n==19||n==199||n==1999||n==19999||
        n==199999||n==1999999||n==19999999||n==199999999||n==1999999999||
        n==19999999999||n==199999999999||n==1999999999999||n==19999999999999||
        n==199999999999999){
            dig*=9;
            dig+=head;
        }else{
    dig*=9;
    dig+=(head-1);
        }
        
        printf("%d",dig);
    

    return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%lld"
.LC2:
	.string	"%d"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$48, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-16(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	-16(%rbp), %rax
	pxor	%xmm3, %xmm3
	cvtsi2sdq	%rax, %xmm3
	movq	%xmm3, %rax
	movq	%rax, %xmm0
	call	log10@PLT
	cvttsd2sil	%xmm0, %eax
	movl	%eax, -24(%rbp)
	movq	-16(%rbp), %rax
	pxor	%xmm2, %xmm2
	cvtsi2sdq	%rax, %xmm2
	movsd	%xmm2, -40(%rbp)
	pxor	%xmm0, %xmm0
	cvtsi2sdl	-24(%rbp), %xmm0
	movq	.LC1(%rip), %rax
	movapd	%xmm0, %xmm1
	movq	%rax, %xmm0
	call	pow@PLT
	movsd	-40(%rbp), %xmm1
	divsd	%xmm0, %xmm1
	cvttsd2sil	%xmm1, %eax
	movl	%eax, -20(%rbp)
	movq	-16(%rbp), %rax
	cmpq	$9, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$99, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$999, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$9999, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$99999, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$999999, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$9999999, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$99999999, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$999999999, %rax
	je	.L2
	movq	-16(%rbp), %rax
	movabsq	$9999999999, %rdx
	cmpq	%rdx, %rax
	je	.L2
	movq	-16(%rbp), %rax
	movabsq	$99999999999, %rdx
	cmpq	%rdx, %rax
	je	.L2
	movq	-16(%rbp), %rax
	movabsq	$999999999999, %rdx
	cmpq	%rdx, %rax
	je	.L2
	movq	-16(%rbp), %rax
	movabsq	$9999999999999, %rdx
	cmpq	%rdx, %rax
	je	.L2
	movq	-16(%rbp), %rax
	movabsq	$99999999999999, %rdx
	cmpq	%rdx, %rax
	je	.L2
	movq	-16(%rbp), %rax
	movabsq	$999999999999999, %rdx
	cmpq	%rdx, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$8, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$89, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$899, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$8999, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$89999, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$899999, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$8999999, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$89999999, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$899999999, %rax
	je	.L2
	movq	-16(%rbp), %rax
	movabsq	$8999999999, %rdx
	cmpq	%rdx, %rax
	je	.L2
	movq	-16(%rbp), %rax
	movabsq	$89999999999, %rdx
	cmpq	%rdx, %rax
	je	.L2
	movq	-16(%rbp), %rax
	movabsq	$899999999999, %rdx
	cmpq	%rdx, %rax
	je	.L2
	movq	-16(%rbp), %rax
	movabsq	$8999999999999, %rdx
	cmpq	%rdx, %rax
	je	.L2
	movq	-16(%rbp), %rax
	movabsq	$89999999999999, %rdx
	cmpq	%rdx, %rax
	je	.L2
	movq	-16(%rbp), %rax
	movabsq	$899999999999999, %rdx
	cmpq	%rdx, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$7, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$79, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$799, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$7999, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$79999, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$799999, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$7999999, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$79999999, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$799999999, %rax
	je	.L2
	movq	-16(%rbp), %rax
	movabsq	$7999999999, %rdx
	cmpq	%rdx, %rax
	je	.L2
	movq	-16(%rbp), %rax
	movabsq	$79999999999, %rdx
	cmpq	%rdx, %rax
	je	.L2
	movq	-16(%rbp), %rax
	movabsq	$799999999999, %rdx
	cmpq	%rdx, %rax
	je	.L2
	movq	-16(%rbp), %rax
	movabsq	$7999999999999, %rdx
	cmpq	%rdx, %rax
	je	.L2
	movq	-16(%rbp), %rax
	movabsq	$79999999999999, %rdx
	cmpq	%rdx, %rax
	je	.L2
	movq	-16(%rbp), %rax
	movabsq	$799999999999999, %rdx
	cmpq	%rdx, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$6, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$69, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$699, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$6999, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$69999, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$699999, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$6999999, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$69999999, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$699999999, %rax
	je	.L2
	movq	-16(%rbp), %rax
	movabsq	$6999999999, %rdx
	cmpq	%rdx, %rax
	je	.L2
	movq	-16(%rbp), %rax
	movabsq	$69999999999, %rdx
	cmpq	%rdx, %rax
	je	.L2
	movq	-16(%rbp), %rax
	movabsq	$699999999999, %rdx
	cmpq	%rdx, %rax
	je	.L2
	movq	-16(%rbp), %rax
	movabsq	$6999999999999, %rdx
	cmpq	%rdx, %rax
	je	.L2
	movq	-16(%rbp), %rax
	movabsq	$69999999999999, %rdx
	cmpq	%rdx, %rax
	je	.L2
	movq	-16(%rbp), %rax
	movabsq	$699999999999999, %rdx
	cmpq	%rdx, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$5, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$59, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$599, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$5999, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$59999, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$599999, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$5999999, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$59999999, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$599999999, %rax
	je	.L2
	movq	-16(%rbp), %rax
	movabsq	$5999999999, %rdx
	cmpq	%rdx, %rax
	je	.L2
	movq	-16(%rbp), %rax
	movabsq	$59999999999, %rdx
	cmpq	%rdx, %rax
	je	.L2
	movq	-16(%rbp), %rax
	movabsq	$599999999999, %rdx
	cmpq	%rdx, %rax
	je	.L2
	movq	-16(%rbp), %rax
	movabsq	$5999999999999, %rdx
	cmpq	%rdx, %rax
	je	.L2
	movq	-16(%rbp), %rax
	movabsq	$59999999999999, %rdx
	cmpq	%rdx, %rax
	je	.L2
	movq	-16(%rbp), %rax
	movabsq	$599999999999999, %rdx
	cmpq	%rdx, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$4, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$49, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$499, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$4999, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$49999, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$499999, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$4999999, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$499999999, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$499999999, %rax
	je	.L2
	movq	-16(%rbp), %rax
	movabsq	$4999999999, %rdx
	cmpq	%rdx, %rax
	je	.L2
	movq	-16(%rbp), %rax
	movabsq	$49999999999, %rdx
	cmpq	%rdx, %rax
	je	.L2
	movq	-16(%rbp), %rax
	movabsq	$499999999999, %rdx
	cmpq	%rdx, %rax
	je	.L2
	movq	-16(%rbp), %rax
	movabsq	$4999999999999, %rdx
	cmpq	%rdx, %rax
	je	.L2
	movq	-16(%rbp), %rax
	movabsq	$49999999999999, %rdx
	cmpq	%rdx, %rax
	je	.L2
	movq	-16(%rbp), %rax
	movabsq	$499999999999999, %rdx
	cmpq	%rdx, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$3, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$39, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$399, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$3999, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$39999, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$399999, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$3999999, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$39999999, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$399999999, %rax
	je	.L2
	movq	-16(%rbp), %rax
	movl	$3999999999, %edx
	cmpq	%rdx, %rax
	je	.L2
	movq	-16(%rbp), %rax
	movabsq	$39999999999, %rdx
	cmpq	%rdx, %rax
	je	.L2
	movq	-16(%rbp), %rax
	movabsq	$399999999999, %rdx
	cmpq	%rdx, %rax
	je	.L2
	movq	-16(%rbp), %rax
	movabsq	$3999999999999, %rdx
	cmpq	%rdx, %rax
	je	.L2
	movq	-16(%rbp), %rax
	movabsq	$39999999999999, %rdx
	cmpq	%rdx, %rax
	je	.L2
	movq	-16(%rbp), %rax
	movabsq	$399999999999999, %rdx
	cmpq	%rdx, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$2, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$29, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$299, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$2999, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$29999, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$299999, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$2999999, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$29999999, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$299999999, %rax
	je	.L2
	movq	-16(%rbp), %rax
	movl	$2999999999, %edx
	cmpq	%rdx, %rax
	je	.L2
	movq	-16(%rbp), %rax
	movabsq	$29999999999, %rdx
	cmpq	%rdx, %rax
	je	.L2
	movq	-16(%rbp), %rax
	movabsq	$299999999999, %rdx
	cmpq	%rdx, %rax
	je	.L2
	movq	-16(%rbp), %rax
	movabsq	$2999999999999, %rdx
	cmpq	%rdx, %rax
	je	.L2
	movq	-16(%rbp), %rax
	movabsq	$29999999999999, %rdx
	cmpq	%rdx, %rax
	je	.L2
	movq	-16(%rbp), %rax
	movabsq	$299999999999999, %rdx
	cmpq	%rdx, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$1, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$19, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$199, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$1999, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$19999, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$199999, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$1999999, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$19999999, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$199999999, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$1999999999, %rax
	je	.L2
	movq	-16(%rbp), %rax
	movabsq	$19999999999, %rdx
	cmpq	%rdx, %rax
	je	.L2
	movq	-16(%rbp), %rax
	movabsq	$199999999999, %rdx
	cmpq	%rdx, %rax
	je	.L2
	movq	-16(%rbp), %rax
	movabsq	$1999999999999, %rdx
	cmpq	%rdx, %rax
	je	.L2
	movq	-16(%rbp), %rax
	movabsq	$19999999999999, %rdx
	cmpq	%rdx, %rax
	je	.L2
	movq	-16(%rbp), %rax
	movabsq	$199999999999999, %rdx
	cmpq	%rdx, %rax
	jne	.L3
.L2:
	movl	-24(%rbp), %edx
	movl	%edx, %eax
	sall	$3, %eax
	addl	%edx, %eax
	movl	%eax, -24(%rbp)
	movl	-20(%rbp), %eax
	addl	%eax, -24(%rbp)
	jmp	.L4
.L3:
	movl	-24(%rbp), %edx
	movl	%edx, %eax
	sall	$3, %eax
	addl	%edx, %eax
	movl	%eax, -24(%rbp)
	movl	-20(%rbp), %eax
	subl	$1, %eax
	addl	%eax, -24(%rbp)
.L4:
	movl	-24(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L6
	call	__stack_chk_fail@PLT
.L6:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC1:
	.long	0
	.long	1076101120
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.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:
```

Only output the optimized assembly code. Do not include any other text. Do not write any comments in the assembly code. Wrap the assembly code in ```assembly``` tags.
train
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%lld"
.LC2:
	.string	"%d"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$48, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-16(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	-16(%rbp), %rax
	pxor	%xmm3, %xmm3
	cvtsi2sdq	%rax, %xmm3
	movq	%xmm3, %rax
	movq	%rax, %xmm0
	call	log10@PLT
	cvttsd2sil	%xmm0, %eax
	movl	%eax, -24(%rbp)
	movq	-16(%rbp), %rax
	pxor	%xmm2, %xmm2
	cvtsi2sdq	%rax, %xmm2
	movsd	%xmm2, -40(%rbp)
	pxor	%xmm0, %xmm0
	cvtsi2sdl	-24(%rbp), %xmm0
	movq	.LC1(%rip), %rax
	movapd	%xmm0, %xmm1
	movq	%rax, %xmm0
	call	pow@PLT
	movsd	-40(%rbp), %xmm1
	divsd	%xmm0, %xmm1
	cvttsd2sil	%xmm1, %eax
	movl	%eax, -20(%rbp)
	movq	-16(%rbp), %rax
	cmpq	$9, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$99, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$999, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$9999, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$99999, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$999999, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$9999999, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$99999999, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$999999999, %rax
	je	.L2
	movq	-16(%rbp), %rax
	movabsq	$9999999999, %rdx
	cmpq	%rdx, %rax
	je	.L2
	movq	-16(%rbp), %rax
	movabsq	$99999999999, %rdx
	cmpq	%rdx, %rax
	je	.L2
	movq	-16(%rbp), %rax
	movabsq	$999999999999, %rdx
	cmpq	%rdx, %rax
	je	.L2
	movq	-16(%rbp), %rax
	movabsq	$9999999999999, %rdx
	cmpq	%rdx, %rax
	je	.L2
	movq	-16(%rbp), %rax
	movabsq	$99999999999999, %rdx
	cmpq	%rdx, %rax
	je	.L2
	movq	-16(%rbp), %rax
	movabsq	$999999999999999, %rdx
	cmpq	%rdx, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$8, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$89, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$899, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$8999, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$89999, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$899999, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$8999999, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$89999999, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$899999999, %rax
	je	.L2
	movq	-16(%rbp), %rax
	movabsq	$8999999999, %rdx
	cmpq	%rdx, %rax
	je	.L2
	movq	-16(%rbp), %rax
	movabsq	$89999999999, %rdx
	cmpq	%rdx, %rax
	je	.L2
	movq	-16(%rbp), %rax
	movabsq	$899999999999, %rdx
	cmpq	%rdx, %rax
	je	.L2
	movq	-16(%rbp), %rax
	movabsq	$8999999999999, %rdx
	cmpq	%rdx, %rax
	je	.L2
	movq	-16(%rbp), %rax
	movabsq	$89999999999999, %rdx
	cmpq	%rdx, %rax
	je	.L2
	movq	-16(%rbp), %rax
	movabsq	$899999999999999, %rdx
	cmpq	%rdx, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$7, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$79, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$799, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$7999, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$79999, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$799999, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$7999999, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$79999999, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$799999999, %rax
	je	.L2
	movq	-16(%rbp), %rax
	movabsq	$7999999999, %rdx
	cmpq	%rdx, %rax
	je	.L2
	movq	-16(%rbp), %rax
	movabsq	$79999999999, %rdx
	cmpq	%rdx, %rax
	je	.L2
	movq	-16(%rbp), %rax
	movabsq	$799999999999, %rdx
	cmpq	%rdx, %rax
	je	.L2
	movq	-16(%rbp), %rax
	movabsq	$7999999999999, %rdx
	cmpq	%rdx, %rax
	je	.L2
	movq	-16(%rbp), %rax
	movabsq	$79999999999999, %rdx
	cmpq	%rdx, %rax
	je	.L2
	movq	-16(%rbp), %rax
	movabsq	$799999999999999, %rdx
	cmpq	%rdx, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$6, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$69, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$699, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$6999, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$69999, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$699999, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$6999999, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$69999999, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$699999999, %rax
	je	.L2
	movq	-16(%rbp), %rax
	movabsq	$6999999999, %rdx
	cmpq	%rdx, %rax
	je	.L2
	movq	-16(%rbp), %rax
	movabsq	$69999999999, %rdx
	cmpq	%rdx, %rax
	je	.L2
	movq	-16(%rbp), %rax
	movabsq	$699999999999, %rdx
	cmpq	%rdx, %rax
	je	.L2
	movq	-16(%rbp), %rax
	movabsq	$6999999999999, %rdx
	cmpq	%rdx, %rax
	je	.L2
	movq	-16(%rbp), %rax
	movabsq	$69999999999999, %rdx
	cmpq	%rdx, %rax
	je	.L2
	movq	-16(%rbp), %rax
	movabsq	$699999999999999, %rdx
	cmpq	%rdx, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$5, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$59, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$599, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$5999, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$59999, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$599999, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$5999999, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$59999999, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$599999999, %rax
	je	.L2
	movq	-16(%rbp), %rax
	movabsq	$5999999999, %rdx
	cmpq	%rdx, %rax
	je	.L2
	movq	-16(%rbp), %rax
	movabsq	$59999999999, %rdx
	cmpq	%rdx, %rax
	je	.L2
	movq	-16(%rbp), %rax
	movabsq	$599999999999, %rdx
	cmpq	%rdx, %rax
	je	.L2
	movq	-16(%rbp), %rax
	movabsq	$5999999999999, %rdx
	cmpq	%rdx, %rax
	je	.L2
	movq	-16(%rbp), %rax
	movabsq	$59999999999999, %rdx
	cmpq	%rdx, %rax
	je	.L2
	movq	-16(%rbp), %rax
	movabsq	$599999999999999, %rdx
	cmpq	%rdx, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$4, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$49, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$499, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$4999, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$49999, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$499999, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$4999999, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$499999999, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$499999999, %rax
	je	.L2
	movq	-16(%rbp), %rax
	movabsq	$4999999999, %rdx
	cmpq	%rdx, %rax
	je	.L2
	movq	-16(%rbp), %rax
	movabsq	$49999999999, %rdx
	cmpq	%rdx, %rax
	je	.L2
	movq	-16(%rbp), %rax
	movabsq	$499999999999, %rdx
	cmpq	%rdx, %rax
	je	.L2
	movq	-16(%rbp), %rax
	movabsq	$4999999999999, %rdx
	cmpq	%rdx, %rax
	je	.L2
	movq	-16(%rbp), %rax
	movabsq	$49999999999999, %rdx
	cmpq	%rdx, %rax
	je	.L2
	movq	-16(%rbp), %rax
	movabsq	$499999999999999, %rdx
	cmpq	%rdx, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$3, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$39, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$399, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$3999, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$39999, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$399999, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$3999999, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$39999999, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$399999999, %rax
	je	.L2
	movq	-16(%rbp), %rax
	movl	$3999999999, %edx
	cmpq	%rdx, %rax
	je	.L2
	movq	-16(%rbp), %rax
	movabsq	$39999999999, %rdx
	cmpq	%rdx, %rax
	je	.L2
	movq	-16(%rbp), %rax
	movabsq	$399999999999, %rdx
	cmpq	%rdx, %rax
	je	.L2
	movq	-16(%rbp), %rax
	movabsq	$3999999999999, %rdx
	cmpq	%rdx, %rax
	je	.L2
	movq	-16(%rbp), %rax
	movabsq	$39999999999999, %rdx
	cmpq	%rdx, %rax
	je	.L2
	movq	-16(%rbp), %rax
	movabsq	$399999999999999, %rdx
	cmpq	%rdx, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$2, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$29, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$299, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$2999, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$29999, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$299999, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$2999999, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$29999999, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$299999999, %rax
	je	.L2
	movq	-16(%rbp), %rax
	movl	$2999999999, %edx
	cmpq	%rdx, %rax
	je	.L2
	movq	-16(%rbp), %rax
	movabsq	$29999999999, %rdx
	cmpq	%rdx, %rax
	je	.L2
	movq	-16(%rbp), %rax
	movabsq	$299999999999, %rdx
	cmpq	%rdx, %rax
	je	.L2
	movq	-16(%rbp), %rax
	movabsq	$2999999999999, %rdx
	cmpq	%rdx, %rax
	je	.L2
	movq	-16(%rbp), %rax
	movabsq	$29999999999999, %rdx
	cmpq	%rdx, %rax
	je	.L2
	movq	-16(%rbp), %rax
	movabsq	$299999999999999, %rdx
	cmpq	%rdx, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$1, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$19, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$199, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$1999, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$19999, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$199999, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$1999999, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$19999999, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$199999999, %rax
	je	.L2
	movq	-16(%rbp), %rax
	cmpq	$1999999999, %rax
	je	.L2
	movq	-16(%rbp), %rax
	movabsq	$19999999999, %rdx
	cmpq	%rdx, %rax
	je	.L2
	movq	-16(%rbp), %rax
	movabsq	$199999999999, %rdx
	cmpq	%rdx, %rax
	je	.L2
	movq	-16(%rbp), %rax
	movabsq	$1999999999999, %rdx
	cmpq	%rdx, %rax
	je	.L2
	movq	-16(%rbp), %rax
	movabsq	$19999999999999, %rdx
	cmpq	%rdx, %rax
	je	.L2
	movq	-16(%rbp), %rax
	movabsq	$199999999999999, %rdx
	cmpq	%rdx, %rax
	jne	.L3
.L2:
	movl	-24(%rbp), %edx
	movl	%edx, %eax
	sall	$3, %eax
	addl	%edx, %eax
	movl	%eax, -24(%rbp)
	movl	-20(%rbp), %eax
	addl	%eax, -24(%rbp)
	jmp	.L4
.L3:
	movl	-24(%rbp), %edx
	movl	%edx, %eax
	sall	$3, %eax
	addl	%edx, %eax
	movl	%eax, -24(%rbp)
	movl	-20(%rbp), %eax
	subl	$1, %eax
	addl	%eax, -24(%rbp)
.L4:
	movl	-24(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L6
	call	__stack_chk_fail@PLT
.L6:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC1:
	.long	0
	.long	1076101120
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.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:
