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>

int main(void){
    int hamming[1000001] = {0};
    int n, m;
    int i, j;

    hamming[1] = 1;
    for (i = 1; i <= 500000; i++){
        if (hamming[i] == 1){
            hamming[i * 2] = 1;
        }
    }
    for (i = 1; i <= 333333; i++){
        if (hamming[i] == 1){
            hamming[i * 3] = 1;
        }
    }
    for (i = 1; i <= 200000; i++){
        if (hamming[i] == 1){
            hamming[i * 5] = 1;
        }
    }

    for (i = 1; i <= 1000000; i++){
        hamming[i] += hamming[i - 1];
    }

    while (1){
        scanf("%d", &m);
        if (m == 0){
            break;
        }
        scanf("%d", &n);

        printf("%d\n", hamming[n] - hamming[m - 1]);
    }

    return (0);
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%d\n"
	.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
	leaq	-3997696(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$2336, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-4000016(%rbp), %rax
	movl	$4000004, %edx
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	movl	$1, -4000012(%rbp)
	movl	$1, -4000020(%rbp)
	jmp	.L2
.L4:
	movl	-4000020(%rbp), %eax
	cltq
	movl	-4000016(%rbp,%rax,4), %eax
	cmpl	$1, %eax
	jne	.L3
	movl	-4000020(%rbp), %eax
	addl	%eax, %eax
	cltq
	movl	$1, -4000016(%rbp,%rax,4)
.L3:
	addl	$1, -4000020(%rbp)
.L2:
	cmpl	$500000, -4000020(%rbp)
	jle	.L4
	movl	$1, -4000020(%rbp)
	jmp	.L5
.L7:
	movl	-4000020(%rbp), %eax
	cltq
	movl	-4000016(%rbp,%rax,4), %eax
	cmpl	$1, %eax
	jne	.L6
	movl	-4000020(%rbp), %edx
	movl	%edx, %eax
	addl	%eax, %eax
	addl	%edx, %eax
	cltq
	movl	$1, -4000016(%rbp,%rax,4)
.L6:
	addl	$1, -4000020(%rbp)
.L5:
	cmpl	$333333, -4000020(%rbp)
	jle	.L7
	movl	$1, -4000020(%rbp)
	jmp	.L8
.L10:
	movl	-4000020(%rbp), %eax
	cltq
	movl	-4000016(%rbp,%rax,4), %eax
	cmpl	$1, %eax
	jne	.L9
	movl	-4000020(%rbp), %edx
	movl	%edx, %eax
	sall	$2, %eax
	addl	%edx, %eax
	cltq
	movl	$1, -4000016(%rbp,%rax,4)
.L9:
	addl	$1, -4000020(%rbp)
.L8:
	cmpl	$200000, -4000020(%rbp)
	jle	.L10
	movl	$1, -4000020(%rbp)
	jmp	.L11
.L12:
	movl	-4000020(%rbp), %eax
	cltq
	movl	-4000016(%rbp,%rax,4), %edx
	movl	-4000020(%rbp), %eax
	subl	$1, %eax
	cltq
	movl	-4000016(%rbp,%rax,4), %eax
	addl	%eax, %edx
	movl	-4000020(%rbp), %eax
	cltq
	movl	%edx, -4000016(%rbp,%rax,4)
	addl	$1, -4000020(%rbp)
.L11:
	cmpl	$1000000, -4000020(%rbp)
	jle	.L12
.L15:
	leaq	-4000024(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-4000024(%rbp), %eax
	testl	%eax, %eax
	je	.L19
	leaq	-4000028(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-4000028(%rbp), %eax
	cltq
	movl	-4000016(%rbp,%rax,4), %edx
	movl	-4000024(%rbp), %eax
	subl	$1, %eax
	cltq
	movl	-4000016(%rbp,%rax,4), %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L15
.L19:
	nop
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L17
	call	__stack_chk_fail@PLT
.L17:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.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	"%d"
.LC1:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	leaq	-3997696(%rsp), %r11
	.cfi_def_cfa 11, 3997728
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$2336, %rsp
	.cfi_def_cfa_offset 4000064
	movl	$4000004, %edx
	xorl	%esi, %esi
	movq	%fs:40, %rax
	movq	%rax, 4000024(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rcx
	movq	%rcx, %rdi
	call	memset@PLT
	movl	$1, 20(%rsp)
	movq	%rax, %rcx
	movl	$1, %eax
	.p2align 4,,10
	.p2align 3
.L3:
	cmpl	$1, (%rcx,%rax,4)
	jne	.L2
	movl	$1, (%rcx,%rax,8)
.L2:
	addq	$1, %rax
	cmpq	$500001, %rax
	jne	.L3
	leaq	20(%rsp), %rax
	leaq	28(%rsp), %rsi
	leaq	1333352(%rsp), %rdi
	movq	%rax, %rdx
	.p2align 4,,10
	.p2align 3
.L5:
	cmpl	$1, (%rdx)
	jne	.L4
	movl	$1, (%rsi)
.L4:
	addq	$4, %rdx
	addq	$12, %rsi
	cmpq	%rdi, %rdx
	jne	.L5
	leaq	36(%rsp), %rsi
	leaq	800004(%rcx), %rdi
	movq	%rax, %rdx
	.p2align 4,,10
	.p2align 3
.L7:
	cmpl	$1, (%rdx)
	jne	.L6
	movl	$1, (%rsi)
.L6:
	addq	$4, %rdx
	addq	$20, %rsi
	cmpq	%rdi, %rdx
	jne	.L7
	movl	16(%rsp), %edx
	addq	$4000004, %rcx
	.p2align 4,,10
	.p2align 3
.L8:
	addl	(%rax), %edx
	addq	$4, %rax
	movl	%edx, -4(%rax)
	cmpq	%rcx, %rax
	jne	.L8
	leaq	12(%rsp), %rbp
	leaq	.LC0(%rip), %rbx
	leaq	.LC1(%rip), %r12
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L18:
	leaq	8(%rsp), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	movslq	8(%rsp), %rdx
	movq	%r12, %rsi
	movl	$1, %edi
	subl	$1, %eax
	movl	16(%rsp,%rdx,4), %edx
	cltq
	subl	16(%rsp,%rax,4), %edx
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L10:
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	testl	%eax, %eax
	jne	.L18
	movq	4000024(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L19
	addq	$4000032, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
.L19:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.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	"%d"
.LC1:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	leaq	-3997696(%rsp), %r11
	.cfi_def_cfa 11, 3997728
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$2336, %rsp
	.cfi_def_cfa_offset 4000064
	movl	$4000004, %edx
	xorl	%esi, %esi
	movq	%fs:40, %rax
	movq	%rax, 4000024(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rcx
	movq	%rcx, %rdi
	call	memset@PLT
	movl	$1, 20(%rsp)
	movq	%rax, %rcx
	movl	$1, %eax
	.p2align 4,,10
	.p2align 3
.L3:
	cmpl	$1, (%rcx,%rax,4)
	jne	.L2
	movl	$1, (%rcx,%rax,8)
.L2:
	addq	$1, %rax
	cmpq	$500001, %rax
	jne	.L3
	leaq	20(%rsp), %rax
	leaq	28(%rsp), %rsi
	leaq	1333352(%rsp), %rdi
	movq	%rax, %rdx
	.p2align 4,,10
	.p2align 3
.L5:
	cmpl	$1, (%rdx)
	jne	.L4
	movl	$1, (%rsi)
.L4:
	addq	$4, %rdx
	addq	$12, %rsi
	cmpq	%rdi, %rdx
	jne	.L5
	leaq	36(%rsp), %rsi
	leaq	800004(%rcx), %rdi
	movq	%rax, %rdx
	.p2align 4,,10
	.p2align 3
.L7:
	cmpl	$1, (%rdx)
	jne	.L6
	movl	$1, (%rsi)
.L6:
	addq	$4, %rdx
	addq	$20, %rsi
	cmpq	%rdi, %rdx
	jne	.L7
	movl	16(%rsp), %edx
	addq	$4000004, %rcx
	.p2align 4,,10
	.p2align 3
.L8:
	addl	(%rax), %edx
	addq	$4, %rax
	movl	%edx, -4(%rax)
	cmpq	%rcx, %rax
	jne	.L8
	leaq	12(%rsp), %rbp
	leaq	.LC0(%rip), %rbx
	leaq	.LC1(%rip), %r12
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L18:
	leaq	8(%rsp), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	movslq	8(%rsp), %rdx
	movq	%r12, %rsi
	movl	$1, %edi
	subl	$1, %eax
	movl	16(%rsp,%rdx,4), %edx
	cltq
	subl	16(%rsp,%rax,4), %edx
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L10:
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	testl	%eax, %eax
	jne	.L18
	movq	4000024(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L19
	addq	$4000032, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
.L19:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.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>

int main(void){
    int hamming[1000001] = {0};
    int n, m;
    int i, j;

    hamming[1] = 1;
    for (i = 1; i <= 500000; i++){
        if (hamming[i] == 1){
            hamming[i * 2] = 1;
        }
    }
    for (i = 1; i <= 333333; i++){
        if (hamming[i] == 1){
            hamming[i * 3] = 1;
        }
    }
    for (i = 1; i <= 200000; i++){
        if (hamming[i] == 1){
            hamming[i * 5] = 1;
        }
    }

    for (i = 1; i <= 1000000; i++){
        hamming[i] += hamming[i - 1];
    }

    while (1){
        scanf("%d", &m);
        if (m == 0){
            break;
        }
        scanf("%d", &n);

        printf("%d\n", hamming[n] - hamming[m - 1]);
    }

    return (0);
}
3 8
2 27
1 86
0
 3 9
2 27
1 86
0
 3 8
1 35
1 86
0
 5 8
2 27
1 86
0
 3 9
4 27
1 86
0
 3 9
6 27
1 86
0
 3 9
6 31
1 86
0
 3 6
6 31
1 86
0
 3 6
6 9
1 86
0
 3 6
8 9
1 86
0

5
16
31
 6
16
31
 5
19
31
 3
16
31
 6
14
31
 6
12
31
 6
13
31
 4
13
31
 4
3
31
 4
2
31

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>

int main(void){
    int hamming[1000001] = {0};
    int n, m;
    int i, j;

    hamming[1] = 1;
    for (i = 1; i <= 500000; i++){
        if (hamming[i] == 1){
            hamming[i * 2] = 1;
        }
    }
    for (i = 1; i <= 333333; i++){
        if (hamming[i] == 1){
            hamming[i * 3] = 1;
        }
    }
    for (i = 1; i <= 200000; i++){
        if (hamming[i] == 1){
            hamming[i * 5] = 1;
        }
    }

    for (i = 1; i <= 1000000; i++){
        hamming[i] += hamming[i - 1];
    }

    while (1){
        scanf("%d", &m);
        if (m == 0){
            break;
        }
        scanf("%d", &n);

        printf("%d\n", hamming[n] - hamming[m - 1]);
    }

    return (0);
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%d\n"
	.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
	leaq	-3997696(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$2336, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-4000016(%rbp), %rax
	movl	$4000004, %edx
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	movl	$1, -4000012(%rbp)
	movl	$1, -4000020(%rbp)
	jmp	.L2
.L4:
	movl	-4000020(%rbp), %eax
	cltq
	movl	-4000016(%rbp,%rax,4), %eax
	cmpl	$1, %eax
	jne	.L3
	movl	-4000020(%rbp), %eax
	addl	%eax, %eax
	cltq
	movl	$1, -4000016(%rbp,%rax,4)
.L3:
	addl	$1, -4000020(%rbp)
.L2:
	cmpl	$500000, -4000020(%rbp)
	jle	.L4
	movl	$1, -4000020(%rbp)
	jmp	.L5
.L7:
	movl	-4000020(%rbp), %eax
	cltq
	movl	-4000016(%rbp,%rax,4), %eax
	cmpl	$1, %eax
	jne	.L6
	movl	-4000020(%rbp), %edx
	movl	%edx, %eax
	addl	%eax, %eax
	addl	%edx, %eax
	cltq
	movl	$1, -4000016(%rbp,%rax,4)
.L6:
	addl	$1, -4000020(%rbp)
.L5:
	cmpl	$333333, -4000020(%rbp)
	jle	.L7
	movl	$1, -4000020(%rbp)
	jmp	.L8
.L10:
	movl	-4000020(%rbp), %eax
	cltq
	movl	-4000016(%rbp,%rax,4), %eax
	cmpl	$1, %eax
	jne	.L9
	movl	-4000020(%rbp), %edx
	movl	%edx, %eax
	sall	$2, %eax
	addl	%edx, %eax
	cltq
	movl	$1, -4000016(%rbp,%rax,4)
.L9:
	addl	$1, -4000020(%rbp)
.L8:
	cmpl	$200000, -4000020(%rbp)
	jle	.L10
	movl	$1, -4000020(%rbp)
	jmp	.L11
.L12:
	movl	-4000020(%rbp), %eax
	cltq
	movl	-4000016(%rbp,%rax,4), %edx
	movl	-4000020(%rbp), %eax
	subl	$1, %eax
	cltq
	movl	-4000016(%rbp,%rax,4), %eax
	addl	%eax, %edx
	movl	-4000020(%rbp), %eax
	cltq
	movl	%edx, -4000016(%rbp,%rax,4)
	addl	$1, -4000020(%rbp)
.L11:
	cmpl	$1000000, -4000020(%rbp)
	jle	.L12
.L15:
	leaq	-4000024(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-4000024(%rbp), %eax
	testl	%eax, %eax
	je	.L19
	leaq	-4000028(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-4000028(%rbp), %eax
	cltq
	movl	-4000016(%rbp,%rax,4), %edx
	movl	-4000024(%rbp), %eax
	subl	$1, %eax
	cltq
	movl	-4000016(%rbp,%rax,4), %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L15
.L19:
	nop
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L17
	call	__stack_chk_fail@PLT
.L17:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.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	"%d"
.LC1:
	.string	"%d\n"
	.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
	leaq	-3997696(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$2336, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-4000016(%rbp), %rax
	movl	$4000004, %edx
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	movl	$1, -4000012(%rbp)
	movl	$1, -4000020(%rbp)
	jmp	.L2
.L4:
	movl	-4000020(%rbp), %eax
	cltq
	movl	-4000016(%rbp,%rax,4), %eax
	cmpl	$1, %eax
	jne	.L3
	movl	-4000020(%rbp), %eax
	addl	%eax, %eax
	cltq
	movl	$1, -4000016(%rbp,%rax,4)
.L3:
	addl	$1, -4000020(%rbp)
.L2:
	cmpl	$500000, -4000020(%rbp)
	jle	.L4
	movl	$1, -4000020(%rbp)
	jmp	.L5
.L7:
	movl	-4000020(%rbp), %eax
	cltq
	movl	-4000016(%rbp,%rax,4), %eax
	cmpl	$1, %eax
	jne	.L6
	movl	-4000020(%rbp), %edx
	movl	%edx, %eax
	addl	%eax, %eax
	addl	%edx, %eax
	cltq
	movl	$1, -4000016(%rbp,%rax,4)
.L6:
	addl	$1, -4000020(%rbp)
.L5:
	cmpl	$333333, -4000020(%rbp)
	jle	.L7
	movl	$1, -4000020(%rbp)
	jmp	.L8
.L10:
	movl	-4000020(%rbp), %eax
	cltq
	movl	-4000016(%rbp,%rax,4), %eax
	cmpl	$1, %eax
	jne	.L9
	movl	-4000020(%rbp), %edx
	movl	%edx, %eax
	sall	$2, %eax
	addl	%edx, %eax
	cltq
	movl	$1, -4000016(%rbp,%rax,4)
.L9:
	addl	$1, -4000020(%rbp)
.L8:
	cmpl	$200000, -4000020(%rbp)
	jle	.L10
	movl	$1, -4000020(%rbp)
	jmp	.L11
.L12:
	movl	-4000020(%rbp), %eax
	cltq
	movl	-4000016(%rbp,%rax,4), %edx
	movl	-4000020(%rbp), %eax
	subl	$1, %eax
	cltq
	movl	-4000016(%rbp,%rax,4), %eax
	addl	%eax, %edx
	movl	-4000020(%rbp), %eax
	cltq
	movl	%edx, -4000016(%rbp,%rax,4)
	addl	$1, -4000020(%rbp)
.L11:
	cmpl	$1000000, -4000020(%rbp)
	jle	.L12
.L15:
	leaq	-4000024(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-4000024(%rbp), %eax
	testl	%eax, %eax
	je	.L19
	leaq	-4000028(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-4000028(%rbp), %eax
	cltq
	movl	-4000016(%rbp,%rax,4), %edx
	movl	-4000024(%rbp), %eax
	subl	$1, %eax
	cltq
	movl	-4000016(%rbp,%rax,4), %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L15
.L19:
	nop
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L17
	call	__stack_chk_fail@PLT
.L17:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.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:
