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 <stdlib.h>
int main(void){
char s[15];
int count;
int kotae;
int a,b,c;
int min=9999;
int shutu=753;
scanf("%s",s);
for(count=0;s[count+2]!='\0';count++){
    a=s[count]-'0';
    b=s[count+1]-'0';
    c=s[count+2]-'0';
kotae=100*a+10*b+1*c;
if(abs(shutu-kotae)<=min){min=abs(shutu-kotae);}
}
printf("%d",min);
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%s"
.LC1:
	.string	"%d"
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$64, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$9999, -48(%rbp)
	movl	$753, -44(%rbp)
	leaq	-23(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -52(%rbp)
	jmp	.L2
.L4:
	movl	-52(%rbp), %eax
	cltq
	movzbl	-23(%rbp,%rax), %eax
	movsbl	%al, %eax
	subl	$48, %eax
	movl	%eax, -40(%rbp)
	movl	-52(%rbp), %eax
	addl	$1, %eax
	cltq
	movzbl	-23(%rbp,%rax), %eax
	movsbl	%al, %eax
	subl	$48, %eax
	movl	%eax, -36(%rbp)
	movl	-52(%rbp), %eax
	addl	$2, %eax
	cltq
	movzbl	-23(%rbp,%rax), %eax
	movsbl	%al, %eax
	subl	$48, %eax
	movl	%eax, -32(%rbp)
	movl	-40(%rbp), %eax
	imull	$100, %eax, %ecx
	movl	-36(%rbp), %edx
	movl	%edx, %eax
	sall	$2, %eax
	addl	%edx, %eax
	addl	%eax, %eax
	leal	(%rcx,%rax), %edx
	movl	-32(%rbp), %eax
	addl	%edx, %eax
	movl	%eax, -28(%rbp)
	movl	-44(%rbp), %eax
	subl	-28(%rbp), %eax
	movl	%eax, %edx
	negl	%edx
	cmovns	%edx, %eax
	cmpl	%eax, -48(%rbp)
	jl	.L3
	movl	-44(%rbp), %eax
	subl	-28(%rbp), %eax
	movl	%eax, %edx
	negl	%edx
	cmovns	%edx, %eax
	movl	%eax, -48(%rbp)
.L3:
	addl	$1, -52(%rbp)
.L2:
	movl	-52(%rbp), %eax
	addl	$2, %eax
	cltq
	movzbl	-23(%rbp,%rax), %eax
	testb	%al, %al
	jne	.L4
	movl	-48(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC1(%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
.LFE6:
	.size	main, .-main
	.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	"%s"
.LC1:
	.string	"%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB39:
	.cfi_startproc
	endbr64
	subq	$40, %rsp
	.cfi_def_cfa_offset 48
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	9(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movsbl	11(%rsp), %esi
	testb	%sil, %sil
	je	.L5
	movsbl	9(%rsp), %eax
	movsbl	10(%rsp), %ecx
	subl	$48, %esi
	movl	$753, %r8d
	subl	$48, %eax
	subl	$48, %ecx
	imull	$100, %eax, %eax
	leal	(%rcx,%rcx,4), %edx
	leal	(%rax,%rdx,2), %edx
	movl	%r8d, %eax
	addl	%esi, %edx
	subl	%edx, %eax
	movl	%eax, %edx
	negl	%edx
	cmovs	%eax, %edx
	movl	$9999, %eax
	cmpl	%eax, %edx
	cmovg	%eax, %edx
	movsbl	12(%rsp), %eax
	testb	%al, %al
	je	.L2
	imull	$100, %ecx, %ecx
	leal	(%rsi,%rsi,4), %edi
	subl	$48, %eax
	leal	(%rcx,%rdi,2), %ecx
	movl	%r8d, %edi
	addl	%eax, %ecx
	subl	%ecx, %edi
	movl	%edi, %ecx
	negl	%ecx
	cmovs	%edi, %ecx
	cmpl	%ecx, %edx
	cmovg	%ecx, %edx
	movsbl	13(%rsp), %ecx
	testb	%cl, %cl
	je	.L2
	imull	$100, %esi, %esi
	leal	(%rax,%rax,4), %edi
	subl	$48, %ecx
	leal	(%rsi,%rdi,2), %esi
	movl	%r8d, %edi
	addl	%ecx, %esi
	subl	%esi, %edi
	movl	%edi, %esi
	negl	%esi
	cmovs	%edi, %esi
	cmpl	%esi, %edx
	cmovg	%esi, %edx
	movsbl	14(%rsp), %esi
	testb	%sil, %sil
	je	.L2
	imull	$100, %eax, %edi
	subl	$48, %esi
	movl	%r8d, %r9d
	imull	$10, %ecx, %eax
	addl	%eax, %edi
	addl	%esi, %edi
	subl	%edi, %r9d
	movl	%r9d, %eax
	negl	%eax
	cmovs	%r9d, %eax
	cmpl	%eax, %edx
	cmovg	%eax, %edx
	movsbl	15(%rsp), %eax
	testb	%al, %al
	je	.L2
	imull	$10, %esi, %edi
	subl	$48, %eax
	imull	$100, %ecx, %ecx
	addl	%edi, %ecx
	movl	%r8d, %edi
	addl	%eax, %ecx
	subl	%ecx, %edi
	movl	%edi, %ecx
	negl	%ecx
	cmovs	%edi, %ecx
	cmpl	%ecx, %edx
	cmovg	%ecx, %edx
	movsbl	16(%rsp), %ecx
	testb	%cl, %cl
	je	.L2
	imull	$10, %eax, %edi
	subl	$48, %ecx
	imull	$100, %esi, %esi
	addl	%edi, %esi
	movl	%r8d, %edi
	addl	%ecx, %esi
	subl	%esi, %edi
	movl	%edi, %esi
	negl	%esi
	cmovs	%edi, %esi
	cmpl	%esi, %edx
	cmovg	%esi, %edx
	movsbl	17(%rsp), %esi
	testb	%sil, %sil
	je	.L2
	imull	$10, %ecx, %edi
	subl	$48, %esi
	imull	$100, %eax, %eax
	addl	%edi, %eax
	movl	%r8d, %edi
	addl	%esi, %eax
	subl	%eax, %edi
	movl	%edi, %eax
	negl	%eax
	cmovs	%edi, %eax
	movsbl	18(%rsp), %edi
	cmpl	%eax, %edx
	cmovg	%eax, %edx
	testb	%dil, %dil
	je	.L2
	imull	$100, %ecx, %eax
	subl	$48, %edi
	movsbl	19(%rsp), %r9d
	imull	$10, %esi, %ecx
	addl	%ecx, %eax
	movl	%r8d, %ecx
	addl	%edi, %eax
	subl	%eax, %ecx
	movl	%ecx, %eax
	negl	%eax
	cmovs	%ecx, %eax
	cmpl	%eax, %edx
	cmovg	%eax, %edx
	testb	%r9b, %r9b
	je	.L2
	imull	$10, %edi, %eax
	subl	$48, %r9d
	imull	$100, %esi, %ecx
	addl	%eax, %ecx
	movl	%r8d, %eax
	addl	%r9d, %ecx
	subl	%ecx, %eax
	movl	%eax, %ecx
	negl	%ecx
	cmovns	%ecx, %eax
	cmpl	%eax, %edx
	cmovg	%eax, %edx
	movsbl	20(%rsp), %eax
	testb	%al, %al
	je	.L2
	imull	$100, %edi, %ecx
	subl	$48, %eax
	movl	$753, %edi
	imull	$10, %r9d, %esi
	addl	%esi, %ecx
	movl	%edi, %esi
	addl	%eax, %ecx
	subl	%ecx, %esi
	movl	%esi, %ecx
	negl	%ecx
	cmovs	%esi, %ecx
	cmpl	%ecx, %edx
	cmovg	%ecx, %edx
	movsbl	21(%rsp), %ecx
	testb	%cl, %cl
	je	.L2
	imull	$10, %eax, %r8d
	leal	-48(%rcx), %esi
	imull	$100, %r9d, %ecx
	addl	%r8d, %ecx
	movl	%edi, %r8d
	addl	%esi, %ecx
	subl	%ecx, %r8d
	movl	%r8d, %ecx
	negl	%ecx
	cmovs	%r8d, %ecx
	cmpl	%ecx, %edx
	cmovg	%ecx, %edx
	movsbl	22(%rsp), %ecx
	testb	%cl, %cl
	je	.L2
	imull	$100, %eax, %eax
	imull	$10, %esi, %esi
	addl	%esi, %eax
	leal	-48(%rax,%rcx), %eax
	subl	%eax, %edi
	movl	%edi, %eax
	negl	%eax
	cmovs	%edi, %eax
	cmpl	%eax, %edx
	cmovg	%eax, %edx
.L2:
	xorl	%eax, %eax
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L41
	xorl	%eax, %eax
	addq	$40, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L5:
	.cfi_restore_state
	movl	$9999, %edx
	jmp	.L2
.L41:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE39:
	.size	main, .-main
	.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	"%s"
.LC1:
	.string	"%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB39:
	.cfi_startproc
	endbr64
	subq	$40, %rsp
	.cfi_def_cfa_offset 48
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	9(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movsbl	11(%rsp), %esi
	testb	%sil, %sil
	je	.L5
	movsbl	9(%rsp), %eax
	movsbl	10(%rsp), %ecx
	subl	$48, %esi
	movl	$753, %r8d
	subl	$48, %eax
	subl	$48, %ecx
	imull	$100, %eax, %eax
	leal	(%rcx,%rcx,4), %edx
	leal	(%rax,%rdx,2), %edx
	movl	%r8d, %eax
	addl	%esi, %edx
	subl	%edx, %eax
	movl	%eax, %edx
	negl	%edx
	cmovs	%eax, %edx
	movl	$9999, %eax
	cmpl	%eax, %edx
	cmovg	%eax, %edx
	movsbl	12(%rsp), %eax
	testb	%al, %al
	je	.L2
	imull	$100, %ecx, %ecx
	leal	(%rsi,%rsi,4), %edi
	subl	$48, %eax
	leal	(%rcx,%rdi,2), %ecx
	movl	%r8d, %edi
	addl	%eax, %ecx
	subl	%ecx, %edi
	movl	%edi, %ecx
	negl	%ecx
	cmovs	%edi, %ecx
	cmpl	%ecx, %edx
	cmovg	%ecx, %edx
	movsbl	13(%rsp), %ecx
	testb	%cl, %cl
	je	.L2
	imull	$100, %esi, %esi
	leal	(%rax,%rax,4), %edi
	subl	$48, %ecx
	leal	(%rsi,%rdi,2), %esi
	movl	%r8d, %edi
	addl	%ecx, %esi
	subl	%esi, %edi
	movl	%edi, %esi
	negl	%esi
	cmovs	%edi, %esi
	cmpl	%esi, %edx
	cmovg	%esi, %edx
	movsbl	14(%rsp), %esi
	testb	%sil, %sil
	je	.L2
	imull	$100, %eax, %edi
	subl	$48, %esi
	movl	%r8d, %r9d
	imull	$10, %ecx, %eax
	addl	%eax, %edi
	addl	%esi, %edi
	subl	%edi, %r9d
	movl	%r9d, %eax
	negl	%eax
	cmovs	%r9d, %eax
	cmpl	%eax, %edx
	cmovg	%eax, %edx
	movsbl	15(%rsp), %eax
	testb	%al, %al
	je	.L2
	imull	$10, %esi, %edi
	subl	$48, %eax
	imull	$100, %ecx, %ecx
	addl	%edi, %ecx
	movl	%r8d, %edi
	addl	%eax, %ecx
	subl	%ecx, %edi
	movl	%edi, %ecx
	negl	%ecx
	cmovs	%edi, %ecx
	cmpl	%ecx, %edx
	cmovg	%ecx, %edx
	movsbl	16(%rsp), %ecx
	testb	%cl, %cl
	je	.L2
	imull	$10, %eax, %edi
	subl	$48, %ecx
	imull	$100, %esi, %esi
	addl	%edi, %esi
	movl	%r8d, %edi
	addl	%ecx, %esi
	subl	%esi, %edi
	movl	%edi, %esi
	negl	%esi
	cmovs	%edi, %esi
	cmpl	%esi, %edx
	cmovg	%esi, %edx
	movsbl	17(%rsp), %esi
	testb	%sil, %sil
	je	.L2
	imull	$10, %ecx, %edi
	subl	$48, %esi
	imull	$100, %eax, %eax
	addl	%edi, %eax
	movl	%r8d, %edi
	addl	%esi, %eax
	subl	%eax, %edi
	movl	%edi, %eax
	negl	%eax
	cmovs	%edi, %eax
	movsbl	18(%rsp), %edi
	cmpl	%eax, %edx
	cmovg	%eax, %edx
	testb	%dil, %dil
	je	.L2
	imull	$100, %ecx, %eax
	subl	$48, %edi
	movsbl	19(%rsp), %r9d
	imull	$10, %esi, %ecx
	addl	%ecx, %eax
	movl	%r8d, %ecx
	addl	%edi, %eax
	subl	%eax, %ecx
	movl	%ecx, %eax
	negl	%eax
	cmovs	%ecx, %eax
	cmpl	%eax, %edx
	cmovg	%eax, %edx
	testb	%r9b, %r9b
	je	.L2
	imull	$10, %edi, %eax
	subl	$48, %r9d
	imull	$100, %esi, %ecx
	addl	%eax, %ecx
	movl	%r8d, %eax
	addl	%r9d, %ecx
	subl	%ecx, %eax
	movl	%eax, %ecx
	negl	%ecx
	cmovns	%ecx, %eax
	cmpl	%eax, %edx
	cmovg	%eax, %edx
	movsbl	20(%rsp), %eax
	testb	%al, %al
	je	.L2
	imull	$100, %edi, %ecx
	subl	$48, %eax
	movl	$753, %edi
	imull	$10, %r9d, %esi
	addl	%esi, %ecx
	movl	%edi, %esi
	addl	%eax, %ecx
	subl	%ecx, %esi
	movl	%esi, %ecx
	negl	%ecx
	cmovs	%esi, %ecx
	cmpl	%ecx, %edx
	cmovg	%ecx, %edx
	movsbl	21(%rsp), %ecx
	testb	%cl, %cl
	je	.L2
	imull	$10, %eax, %r8d
	leal	-48(%rcx), %esi
	imull	$100, %r9d, %ecx
	addl	%r8d, %ecx
	movl	%edi, %r8d
	addl	%esi, %ecx
	subl	%ecx, %r8d
	movl	%r8d, %ecx
	negl	%ecx
	cmovs	%r8d, %ecx
	cmpl	%ecx, %edx
	cmovg	%ecx, %edx
	movsbl	22(%rsp), %ecx
	testb	%cl, %cl
	je	.L2
	imull	$100, %eax, %eax
	imull	$10, %esi, %esi
	addl	%esi, %eax
	leal	-48(%rax,%rcx), %eax
	subl	%eax, %edi
	movl	%edi, %eax
	negl	%eax
	cmovs	%edi, %eax
	cmpl	%eax, %edx
	cmovg	%eax, %edx
.L2:
	xorl	%eax, %eax
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L41
	xorl	%eax, %eax
	addq	$40, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L5:
	.cfi_restore_state
	movl	$9999, %edx
	jmp	.L2
.L41:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE39:
	.size	main, .-main
	.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 <stdlib.h>
int main(void){
char s[15];
int count;
int kotae;
int a,b,c;
int min=9999;
int shutu=753;
scanf("%s",s);
for(count=0;s[count+2]!='\0';count++){
    a=s[count]-'0';
    b=s[count+1]-'0';
    c=s[count+2]-'0';
kotae=100*a+10*b+1*c;
if(abs(shutu-kotae)<=min){min=abs(shutu-kotae);}
}
printf("%d",min);
}
43594
 1133184093
 1110111111
 80343
 1646883079
 93622
 978408132
 120326
 1514858721
 226242

159 87 642 50 65 131 31 427 32 129
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 <stdlib.h>
int main(void){
char s[15];
int count;
int kotae;
int a,b,c;
int min=9999;
int shutu=753;
scanf("%s",s);
for(count=0;s[count+2]!='\0';count++){
    a=s[count]-'0';
    b=s[count+1]-'0';
    c=s[count+2]-'0';
kotae=100*a+10*b+1*c;
if(abs(shutu-kotae)<=min){min=abs(shutu-kotae);}
}
printf("%d",min);
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%s"
.LC1:
	.string	"%d"
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$64, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$9999, -48(%rbp)
	movl	$753, -44(%rbp)
	leaq	-23(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -52(%rbp)
	jmp	.L2
.L4:
	movl	-52(%rbp), %eax
	cltq
	movzbl	-23(%rbp,%rax), %eax
	movsbl	%al, %eax
	subl	$48, %eax
	movl	%eax, -40(%rbp)
	movl	-52(%rbp), %eax
	addl	$1, %eax
	cltq
	movzbl	-23(%rbp,%rax), %eax
	movsbl	%al, %eax
	subl	$48, %eax
	movl	%eax, -36(%rbp)
	movl	-52(%rbp), %eax
	addl	$2, %eax
	cltq
	movzbl	-23(%rbp,%rax), %eax
	movsbl	%al, %eax
	subl	$48, %eax
	movl	%eax, -32(%rbp)
	movl	-40(%rbp), %eax
	imull	$100, %eax, %ecx
	movl	-36(%rbp), %edx
	movl	%edx, %eax
	sall	$2, %eax
	addl	%edx, %eax
	addl	%eax, %eax
	leal	(%rcx,%rax), %edx
	movl	-32(%rbp), %eax
	addl	%edx, %eax
	movl	%eax, -28(%rbp)
	movl	-44(%rbp), %eax
	subl	-28(%rbp), %eax
	movl	%eax, %edx
	negl	%edx
	cmovns	%edx, %eax
	cmpl	%eax, -48(%rbp)
	jl	.L3
	movl	-44(%rbp), %eax
	subl	-28(%rbp), %eax
	movl	%eax, %edx
	negl	%edx
	cmovns	%edx, %eax
	movl	%eax, -48(%rbp)
.L3:
	addl	$1, -52(%rbp)
.L2:
	movl	-52(%rbp), %eax
	addl	$2, %eax
	cltq
	movzbl	-23(%rbp,%rax), %eax
	testb	%al, %al
	jne	.L4
	movl	-48(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC1(%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
.LFE6:
	.size	main, .-main
	.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	"%s"
.LC1:
	.string	"%d"
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$64, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$9999, -48(%rbp)
	movl	$753, -44(%rbp)
	leaq	-23(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -52(%rbp)
	jmp	.L2
.L4:
	movl	-52(%rbp), %eax
	cltq
	movzbl	-23(%rbp,%rax), %eax
	movsbl	%al, %eax
	subl	$48, %eax
	movl	%eax, -40(%rbp)
	movl	-52(%rbp), %eax
	addl	$1, %eax
	cltq
	movzbl	-23(%rbp,%rax), %eax
	movsbl	%al, %eax
	subl	$48, %eax
	movl	%eax, -36(%rbp)
	movl	-52(%rbp), %eax
	addl	$2, %eax
	cltq
	movzbl	-23(%rbp,%rax), %eax
	movsbl	%al, %eax
	subl	$48, %eax
	movl	%eax, -32(%rbp)
	movl	-40(%rbp), %eax
	imull	$100, %eax, %ecx
	movl	-36(%rbp), %edx
	movl	%edx, %eax
	sall	$2, %eax
	addl	%edx, %eax
	addl	%eax, %eax
	leal	(%rcx,%rax), %edx
	movl	-32(%rbp), %eax
	addl	%edx, %eax
	movl	%eax, -28(%rbp)
	movl	-44(%rbp), %eax
	subl	-28(%rbp), %eax
	movl	%eax, %edx
	negl	%edx
	cmovns	%edx, %eax
	cmpl	%eax, -48(%rbp)
	jl	.L3
	movl	-44(%rbp), %eax
	subl	-28(%rbp), %eax
	movl	%eax, %edx
	negl	%edx
	cmovns	%edx, %eax
	movl	%eax, -48(%rbp)
.L3:
	addl	$1, -52(%rbp)
.L2:
	movl	-52(%rbp), %eax
	addl	$2, %eax
	cltq
	movzbl	-23(%rbp,%rax), %eax
	testb	%al, %al
	jne	.L4
	movl	-48(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC1(%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
.LFE6:
	.size	main, .-main
	.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:
