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

```c
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define ll long long
#define ull unsigned long long
#define MOD 1000000007

int main(){
    ull ans=0;
    int i,j,n,s[30002]={},check[4]={},cur=0;
    char str[30002]={},tmp;
    scanf("%d",&n);
    scanf("%s",str);
    /*for (i=0; i<n; i++){
        tmp=str[i];
        s[i]=atoi(&tmp);
    }*/
    for (i=0; i<1000; i++) {
        cur=0;
        check[0]=i/100;
        check[1]=(i/10)%10;
        check[2]=i%10;
        for (j=0; j<n; j++) {
            if(str[j]==(check[cur]+'0')) cur++;
            if (cur==3) break;
        }
        if (cur==3) ans++;
    }
    printf("%lld",ans);
    return 0;
}
```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%s"
.LC2:
	.string	"%lld"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB51:
	.cfi_startproc
	endbr64
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	leaq	-28672(%rsp), %r11
	.cfi_def_cfa 11, 28688
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$1376, %rsp
	.cfi_def_cfa_offset 30064
	pxor	%xmm0, %xmm0
	movl	$29986, %edx
	xorl	%esi, %esi
	movq	%fs:40, %rax
	movq	%rax, 30040(%rsp)
	xorl	%eax, %eax
	leaq	48(%rsp), %rdi
	movaps	%xmm0, 32(%rsp)
	leaq	32(%rsp), %rbx
	movl	$0, 28(%rsp)
	call	memset@PLT
	leaq	12(%rsp), %rsi
	leaq	.LC0(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	leaq	.LC1(%rip), %rdi
	movq	%rbx, %rsi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %r10d
	xorl	%r8d, %r8d
	xorl	%r11d, %r11d
	movl	$3435973837, %r9d
	leal	-1(%r10), %eax
	leaq	33(%rsp,%rax), %rdi
	.p2align 4,,10
	.p2align 3
.L6:
	movl	%r8d, %edx
	imulq	$1374389535, %rdx, %rax
	imulq	%r9, %rdx
	shrq	$37, %rax
	shrq	$35, %rdx
	movd	%eax, %xmm0
	movl	%edx, %ecx
	movl	%edx, %esi
	leal	(%rdx,%rdx,4), %edx
	imulq	%r9, %rcx
	addl	%edx, %edx
	shrq	$35, %rcx
	leal	(%rcx,%rcx,4), %ecx
	addl	%ecx, %ecx
	subl	%ecx, %esi
	movl	%r8d, %ecx
	movd	%esi, %xmm1
	subl	%edx, %ecx
	punpckldq	%xmm1, %xmm0
	movl	%ecx, 24(%rsp)
	movq	%xmm0, 16(%rsp)
	testl	%r10d, %r10d
	jle	.L2
	movq	%rbx, %rcx
	xorl	%edx, %edx
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L11:
	addq	$1, %rcx
	cmpq	%rcx, %rdi
	je	.L2
	movslq	%edx, %rax
	movl	16(%rsp,%rax,4), %eax
.L5:
	movsbl	(%rcx), %esi
	addl	$48, %eax
	cmpl	%eax, %esi
	sete	%al
	movzbl	%al, %eax
	addl	%eax, %edx
	cmpl	$3, %edx
	jne	.L11
	addq	$1, %r11
.L2:
	addl	$1, %r8d
	cmpl	$1000, %r8d
	jne	.L6
	xorl	%eax, %eax
	movq	%r11, %rdx
	movl	$1, %edi
	leaq	.LC2(%rip), %rsi
	call	__printf_chk@PLT
	movq	30040(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L12
	addq	$30048, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 8
	ret
.L12:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE51:
	.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.
Optimized Assembly Code:

user
```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%s"
.LC2:
	.string	"%lld"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB51:
	.cfi_startproc
	endbr64
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	leaq	-28672(%rsp), %r11
	.cfi_def_cfa 11, 28688
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$1376, %rsp
	.cfi_def_cfa_offset 30064
	pxor	%xmm0, %xmm0
	movl	$29986, %edx
	xorl	%esi, %esi
	movq	%fs:40, %rax
	movq	%rax, 30040(%rsp)
	xorl	%eax, %eax
	leaq	48(%rsp), %rdi
	movaps	%xmm0, 32(%rsp)
	leaq	32(%rsp), %rbx
	movl	$0, 28(%rsp)
	call	memset@PLT
	leaq	12(%rsp), %rsi
	leaq	.LC0(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	leaq	.LC1(%rip), %rdi
	movq	%rbx, %rsi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %r10d
	xorl	%r8d, %r8d
	xorl	%r11d, %r11d
	movl	$3435973837, %r9d
	leal	-1(%r10), %eax
	leaq	33(%rsp,%rax), %rdi
	.p2align 4,,10
	.p2align 3
.L6:
	movl	%r8d, %edx
	imulq	$1374389535, %rdx, %rax
	imulq	%r9, %rdx
	shrq	$37, %rax
	shrq	$35, %rdx
	movd	%eax, %xmm0
	movl	%edx, %ecx
	movl	%edx, %esi
	leal	(%rdx,%rdx,4), %edx
	imulq	%r9, %rcx
	addl	%edx, %edx
	shrq	$35, %rcx
	leal	(%rcx,%rcx,4), %ecx
	addl	%ecx, %ecx
	subl	%ecx, %esi
	movl	%r8d, %ecx
	movd	%esi, %xmm1
	subl	%edx, %ecx
	punpckldq	%xmm1, %xmm0
	movl	%ecx, 24(%rsp)
	movq	%xmm0, 16(%rsp)
	testl	%r10d, %r10d
	jle	.L2
	movq	%rbx, %rcx
	xorl	%edx, %edx
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L11:
	addq	$1, %rcx
	cmpq	%rcx, %rdi
	je	.L2
	movslq	%edx, %rax
	movl	16(%rsp,%rax,4), %eax
.L5:
	movsbl	(%rcx), %esi
	addl	$48, %eax
	cmpl	%eax, %esi
	sete	%al
	movzbl	%al, %eax
	addl	%eax, %edx
	cmpl	$3, %edx
	jne	.L11
	addq	$1, %r11
.L2:
	addl	$1, %r8d
	cmpl	$1000, %r8d
	jne	.L6
	xorl	%eax, %eax
	movq	%r11, %rdx
	movl	$1, %edi
	leaq	.LC2(%rip), %rsi
	call	__printf_chk@PLT
	movq	30040(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L12
	addq	$30048, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 8
	ret
.L12:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE51:
	.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
```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%s"
.LC2:
	.string	"%lld"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB51:
	.cfi_startproc
	endbr64
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	leaq	-28672(%rsp), %r11
	.cfi_def_cfa 11, 28688
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$1376, %rsp
	.cfi_def_cfa_offset 30064
	pxor	%xmm0, %xmm0
	movl	$29986, %edx
	xorl	%esi, %esi
	movq	%fs:40, %rax
	movq	%rax, 30040(%rsp)
	xorl	%eax, %eax
	leaq	48(%rsp), %rdi
	movaps	%xmm0, 32(%rsp)
	leaq	32(%rsp), %rbx
	movl	$0, 28(%rsp)
	call	memset@PLT
	leaq	12(%rsp), %rsi
	leaq	.LC0(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	leaq	.LC1(%rip), %rdi
	movq	%rbx, %rsi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %r10d
	xorl	%r8d, %r8d
	xorl	%r11d, %r11d
	movl	$3435973837, %r9d
	leal	-1(%r10), %eax
	leaq	33(%rsp,%rax), %rdi
	.p2align 4,,10
	.p2align 3
.L6:
	movl	%r8d, %edx
	imulq	$1374389535, %rdx, %rax
	imulq	%r9, %rdx
	shrq	$37, %rax
	shrq	$35, %rdx
	movd	%eax, %xmm0
	movl	%edx, %ecx
	movl	%edx, %esi
	leal	(%rdx,%rdx,4), %edx
	imulq	%r9, %rcx
	addl	%edx, %edx
	shrq	$35, %rcx
	leal	(%rcx,%rcx,4), %ecx
	addl	%ecx, %ecx
	subl	%ecx, %esi
	movl	%r8d, %ecx
	movd	%esi, %xmm1
	subl	%edx, %ecx
	punpckldq	%xmm1, %xmm0
	movl	%ecx, 24(%rsp)
	movq	%xmm0, 16(%rsp)
	testl	%r10d, %r10d
	jle	.L2
	movq	%rbx, %rcx
	xorl	%edx, %edx
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L11:
	addq	$1, %rcx
	cmpq	%rcx, %rdi
	je	.L2
	movslq	%edx, %rax
	movl	16(%rsp,%rax,4), %eax
.L5:
	movsbl	(%rcx), %esi
	addl	$48, %eax
	cmpl	%eax, %esi
	sete	%al
	movzbl	%al, %eax
	addl	%eax, %edx
	cmpl	$3, %edx
	jne	.L11
	addq	$1, %r11
.L2:
	addl	$1, %r8d
	cmpl	$1000, %r8d
	jne	.L6
	xorl	%eax, %eax
	movq	%r11, %rdx
	movl	$1, %edi
	leaq	.LC2(%rip), %rsi
	call	__printf_chk@PLT
	movq	30040(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L12
	addq	$30048, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 8
	ret
.L12:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE51:
	.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:
```
```c
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define ll long long
#define ull unsigned long long
#define MOD 1000000007

int main(){
    ull ans=0;
    int i,j,n,s[30002]={},check[4]={},cur=0;
    char str[30002]={},tmp;
    scanf("%d",&n);
    scanf("%s",str);
    /*for (i=0; i<n; i++){
        tmp=str[i];
        s[i]=atoi(&tmp);
    }*/
    for (i=0; i<1000; i++) {
        cur=0;
        check[0]=i/100;
        check[1]=(i/10)%10;
        check[2]=i%10;
        for (j=0; j<n; j++) {
            if(str[j]==(check[cur]+'0')) cur++;
            if (cur==3) break;
        }
        if (cur==3) ans++;
    }
    printf("%lld",ans);
    return 0;
}
```
Given the following C code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define ll long long
#define ull unsigned long long
#define MOD 1000000007

int main(){
    ull ans=0;
    int i,j,n,s[30002]={},check[4]={},cur=0;
    char str[30002]={},tmp;
    scanf("%d",&n);
    scanf("%s",str);
    /*for (i=0; i<n; i++){
        tmp=str[i];
        s[i]=atoi(&tmp);
    }*/
    for (i=0; i<1000; i++) {
        cur=0;
        check[0]=i/100;
        check[1]=(i/10)%10;
        check[2]=i%10;
        for (j=0; j<n; j++) {
            if(str[j]==(check[cur]+'0')) cur++;
            if (cur==3) break;
        }
        if (cur==3) ans++;
    }
    printf("%lld",ans);
    return 0;
}
```

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.
Optimized Assembly Code:

19
5546189040285140044
 19
4753841743850076999
 19
9039528710159876563
 19
3616863455241776042
 19
2785343766571511696
 19
2922045480066417189
 19
7230040539071200180
 19
1036710694297327965
 19
1455506616048969060
 19
3356521006821128568

273 311 412 322 239 281 292 364 172 210
Given the following C code and assembly code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define ll long long
#define ull unsigned long long
#define MOD 1000000007

int main(){
    ull ans=0;
    int i,j,n,s[30002]={},check[4]={},cur=0;
    char str[30002]={},tmp;
    scanf("%d",&n);
    scanf("%s",str);
    /*for (i=0; i<n; i++){
        tmp=str[i];
        s[i]=atoi(&tmp);
    }*/
    for (i=0; i<1000; i++) {
        cur=0;
        check[0]=i/100;
        check[1]=(i/10)%10;
        check[2]=i%10;
        for (j=0; j<n; j++) {
            if(str[j]==(check[cur]+'0')) cur++;
            if (cur==3) break;
        }
        if (cur==3) ans++;
    }
    printf("%lld",ans);
    return 0;
}
```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%s"
.LC2:
	.string	"%lld"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB51:
	.cfi_startproc
	endbr64
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	leaq	-28672(%rsp), %r11
	.cfi_def_cfa 11, 28688
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$1376, %rsp
	.cfi_def_cfa_offset 30064
	pxor	%xmm0, %xmm0
	movl	$29986, %edx
	xorl	%esi, %esi
	movq	%fs:40, %rax
	movq	%rax, 30040(%rsp)
	xorl	%eax, %eax
	leaq	48(%rsp), %rdi
	movaps	%xmm0, 32(%rsp)
	leaq	32(%rsp), %rbx
	movl	$0, 28(%rsp)
	call	memset@PLT
	leaq	12(%rsp), %rsi
	leaq	.LC0(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	leaq	.LC1(%rip), %rdi
	movq	%rbx, %rsi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %r10d
	xorl	%r8d, %r8d
	xorl	%r11d, %r11d
	movl	$3435973837, %r9d
	leal	-1(%r10), %eax
	leaq	33(%rsp,%rax), %rdi
	.p2align 4,,10
	.p2align 3
.L6:
	movl	%r8d, %edx
	imulq	$1374389535, %rdx, %rax
	imulq	%r9, %rdx
	shrq	$37, %rax
	shrq	$35, %rdx
	movd	%eax, %xmm0
	movl	%edx, %ecx
	movl	%edx, %esi
	leal	(%rdx,%rdx,4), %edx
	imulq	%r9, %rcx
	addl	%edx, %edx
	shrq	$35, %rcx
	leal	(%rcx,%rcx,4), %ecx
	addl	%ecx, %ecx
	subl	%ecx, %esi
	movl	%r8d, %ecx
	movd	%esi, %xmm1
	subl	%edx, %ecx
	punpckldq	%xmm1, %xmm0
	movl	%ecx, 24(%rsp)
	movq	%xmm0, 16(%rsp)
	testl	%r10d, %r10d
	jle	.L2
	movq	%rbx, %rcx
	xorl	%edx, %edx
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L11:
	addq	$1, %rcx
	cmpq	%rcx, %rdi
	je	.L2
	movslq	%edx, %rax
	movl	16(%rsp,%rax,4), %eax
.L5:
	movsbl	(%rcx), %esi
	addl	$48, %eax
	cmpl	%eax, %esi
	sete	%al
	movzbl	%al, %eax
	addl	%eax, %edx
	cmpl	$3, %edx
	jne	.L11
	addq	$1, %r11
.L2:
	addl	$1, %r8d
	cmpl	$1000, %r8d
	jne	.L6
	xorl	%eax, %eax
	movq	%r11, %rdx
	movl	$1, %edi
	leaq	.LC2(%rip), %rsi
	call	__printf_chk@PLT
	movq	30040(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L12
	addq	$30048, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 8
	ret
.L12:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE51:
	.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.
Optimized Assembly Code:

train
```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%s"
.LC2:
	.string	"%lld"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB51:
	.cfi_startproc
	endbr64
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	leaq	-28672(%rsp), %r11
	.cfi_def_cfa 11, 28688
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$1376, %rsp
	.cfi_def_cfa_offset 30064
	pxor	%xmm0, %xmm0
	movl	$29986, %edx
	xorl	%esi, %esi
	movq	%fs:40, %rax
	movq	%rax, 30040(%rsp)
	xorl	%eax, %eax
	leaq	48(%rsp), %rdi
	movaps	%xmm0, 32(%rsp)
	leaq	32(%rsp), %rbx
	movl	$0, 28(%rsp)
	call	memset@PLT
	leaq	12(%rsp), %rsi
	leaq	.LC0(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	leaq	.LC1(%rip), %rdi
	movq	%rbx, %rsi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %r10d
	xorl	%r8d, %r8d
	xorl	%r11d, %r11d
	movl	$3435973837, %r9d
	leal	-1(%r10), %eax
	leaq	33(%rsp,%rax), %rdi
	.p2align 4,,10
	.p2align 3
.L6:
	movl	%r8d, %edx
	imulq	$1374389535, %rdx, %rax
	imulq	%r9, %rdx
	shrq	$37, %rax
	shrq	$35, %rdx
	movd	%eax, %xmm0
	movl	%edx, %ecx
	movl	%edx, %esi
	leal	(%rdx,%rdx,4), %edx
	imulq	%r9, %rcx
	addl	%edx, %edx
	shrq	$35, %rcx
	leal	(%rcx,%rcx,4), %ecx
	addl	%ecx, %ecx
	subl	%ecx, %esi
	movl	%r8d, %ecx
	movd	%esi, %xmm1
	subl	%edx, %ecx
	punpckldq	%xmm1, %xmm0
	movl	%ecx, 24(%rsp)
	movq	%xmm0, 16(%rsp)
	testl	%r10d, %r10d
	jle	.L2
	movq	%rbx, %rcx
	xorl	%edx, %edx
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L11:
	addq	$1, %rcx
	cmpq	%rcx, %rdi
	je	.L2
	movslq	%edx, %rax
	movl	16(%rsp,%rax,4), %eax
.L5:
	movsbl	(%rcx), %esi
	addl	$48, %eax
	cmpl	%eax, %esi
	sete	%al
	movzbl	%al, %eax
	addl	%eax, %edx
	cmpl	$3, %edx
	jne	.L11
	addq	$1, %r11
.L2:
	addl	$1, %r8d
	cmpl	$1000, %r8d
	jne	.L6
	xorl	%eax, %eax
	movq	%r11, %rdx
	movl	$1, %edi
	leaq	.LC2(%rip), %rsi
	call	__printf_chk@PLT
	movq	30040(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L12
	addq	$30048, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 8
	ret
.L12:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE51:
	.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:
```