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()
{
    long int n,a[200010],i,ans[200010];

     for(i=0;i<200009;i++)
        ans[i] = 0;

    scanf("%ld",&n);

    for(i=0;i<n;i++)
    {
        scanf("%ld",&a[i]);
        ans[a[i]]++;
    }

    long int sum = 0; 

    for(i=0;i<200009;i++)
    {
        sum += (ans[i]*(ans[i]-1))/2;
    }

    for(i=0;i<n;i++)
    {
        printf("%ld\n",
            sum - (ans[a[i]]*(ans[a[i]]-1))/2 +((ans[a[i]]-2)*(ans[a[i]]-1))/2);
    }

    return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%ld"
.LC1:
	.string	"%ld\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	-3198976(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$1232, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movq	$0, -3200192(%rbp)
	jmp	.L2
.L3:
	movq	-3200192(%rbp), %rax
	movq	$0, -1600096(%rbp,%rax,8)
	addq	$1, -3200192(%rbp)
.L2:
	cmpq	$200008, -3200192(%rbp)
	jle	.L3
	leaq	-3200200(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	$0, -3200192(%rbp)
	jmp	.L4
.L5:
	leaq	-3200176(%rbp), %rdx
	movq	-3200192(%rbp), %rax
	salq	$3, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	-3200192(%rbp), %rax
	movq	-3200176(%rbp,%rax,8), %rax
	movq	-1600096(%rbp,%rax,8), %rdx
	addq	$1, %rdx
	movq	%rdx, -1600096(%rbp,%rax,8)
	addq	$1, -3200192(%rbp)
.L4:
	movq	-3200200(%rbp), %rax
	cmpq	%rax, -3200192(%rbp)
	jl	.L5
	movq	$0, -3200184(%rbp)
	movq	$0, -3200192(%rbp)
	jmp	.L6
.L7:
	movq	-3200192(%rbp), %rax
	movq	-1600096(%rbp,%rax,8), %rdx
	movq	-3200192(%rbp), %rax
	movq	-1600096(%rbp,%rax,8), %rax
	subq	$1, %rax
	imulq	%rdx, %rax
	movq	%rax, %rdx
	shrq	$63, %rdx
	addq	%rdx, %rax
	sarq	%rax
	addq	%rax, -3200184(%rbp)
	addq	$1, -3200192(%rbp)
.L6:
	cmpq	$200008, -3200192(%rbp)
	jle	.L7
	movq	$0, -3200192(%rbp)
	jmp	.L8
.L9:
	movq	-3200192(%rbp), %rax
	movq	-3200176(%rbp,%rax,8), %rax
	movq	-1600096(%rbp,%rax,8), %rdx
	movq	-3200192(%rbp), %rax
	movq	-3200176(%rbp,%rax,8), %rax
	movq	-1600096(%rbp,%rax,8), %rax
	subq	$1, %rax
	imulq	%rdx, %rax
	movq	%rax, %rdx
	shrq	$63, %rdx
	addq	%rdx, %rax
	sarq	%rax
	negq	%rax
	movq	%rax, %rdx
	movq	-3200184(%rbp), %rax
	leaq	(%rdx,%rax), %rcx
	movq	-3200192(%rbp), %rax
	movq	-3200176(%rbp,%rax,8), %rax
	movq	-1600096(%rbp,%rax,8), %rax
	leaq	-2(%rax), %rdx
	movq	-3200192(%rbp), %rax
	movq	-3200176(%rbp,%rax,8), %rax
	movq	-1600096(%rbp,%rax,8), %rax
	subq	$1, %rax
	imulq	%rdx, %rax
	movq	%rax, %rdx
	shrq	$63, %rdx
	addq	%rdx, %rax
	sarq	%rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addq	$1, -3200192(%rbp)
.L8:
	movq	-3200200(%rbp), %rax
	cmpq	%rax, -3200192(%rbp)
	jl	.L9
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L11
	call	__stack_chk_fail@PLT
.L11:
	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	"%ld"
.LC1:
	.string	"%ld\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	leaq	-3198976(%rsp), %r11
	.cfi_def_cfa 11, 3199016
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$1224, %rsp
	.cfi_def_cfa_offset 3200240
	movl	$1600072, %edx
	xorl	%esi, %esi
	leaq	.LC0(%rip), %r13
	movq	%fs:40, %rax
	movq	%rax, 3200184(%rsp)
	xorl	%eax, %eax
	leaq	1600096(%rsp), %rbx
	movq	%rbx, %rdi
	call	memset@PLT
	movq	%r13, %rdi
	leaq	8(%rsp), %rsi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movq	8(%rsp), %rdi
	testq	%rdi, %rdi
	jle	.L2
	leaq	16(%rsp), %rbp
	xorl	%r12d, %r12d
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%rbp, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addq	$1, %r12
	call	__isoc99_scanf@PLT
	movq	0(%rbp), %rax
	movq	8(%rsp), %rdi
	addq	$8, %rbp
	addq	$1, 1600096(%rsp,%rax,8)
	cmpq	%r12, %rdi
	jg	.L3
.L2:
	movq	%rbx, %rcx
	leaq	3200168(%rsp), %rsi
	xorl	%ebx, %ebx
	.p2align 4,,10
	.p2align 3
.L4:
	movq	(%rcx), %rax
	addq	$8, %rcx
	leaq	-1(%rax), %rdx
	imulq	%rax, %rdx
	movq	%rdx, %rax
	shrq	$63, %rax
	addq	%rdx, %rax
	sarq	%rax
	addq	%rax, %rbx
	cmpq	%rsi, %rcx
	jne	.L4
	xorl	%r12d, %r12d
	leaq	16(%rsp), %r13
	leaq	.LC1(%rip), %rbp
	testq	%rdi, %rdi
	jle	.L6
	.p2align 4,,10
	.p2align 3
.L5:
	movq	0(%r13,%r12,8), %rax
	movq	%rbp, %rsi
	movl	$1, %edi
	addq	$1, %r12
	movq	1600096(%rsp,%rax,8), %rax
	leaq	-1(%rax), %rdx
	imulq	%rdx, %rax
	addq	%rdx, %rdx
	movq	%rax, %rcx
	subq	%rdx, %rcx
	movq	%rcx, %rdx
	shrq	$63, %rdx
	addq	%rcx, %rdx
	movq	%rax, %rcx
	shrq	$63, %rcx
	sarq	%rdx
	addq	%rcx, %rax
	movq	%rbx, %rcx
	sarq	%rax
	subq	%rax, %rcx
	xorl	%eax, %eax
	addq	%rcx, %rdx
	call	__printf_chk@PLT
	cmpq	%r12, 8(%rsp)
	jg	.L5
.L6:
	movq	3200184(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L16
	addq	$3200200, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
.L16:
	.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	"%ld"
.LC1:
	.string	"%ld\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	leaq	-3198976(%rsp), %r11
	.cfi_def_cfa 11, 3199016
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$1224, %rsp
	.cfi_def_cfa_offset 3200240
	movl	$1600072, %edx
	xorl	%esi, %esi
	leaq	.LC0(%rip), %r13
	movq	%fs:40, %rax
	movq	%rax, 3200184(%rsp)
	xorl	%eax, %eax
	leaq	1600096(%rsp), %rbx
	movq	%rbx, %rdi
	call	memset@PLT
	movq	%r13, %rdi
	leaq	8(%rsp), %rsi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movq	8(%rsp), %rdi
	testq	%rdi, %rdi
	jle	.L2
	leaq	16(%rsp), %rbp
	xorl	%r12d, %r12d
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%rbp, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addq	$1, %r12
	call	__isoc99_scanf@PLT
	movq	0(%rbp), %rax
	movq	8(%rsp), %rdi
	addq	$8, %rbp
	addq	$1, 1600096(%rsp,%rax,8)
	cmpq	%r12, %rdi
	jg	.L3
.L2:
	movq	%rbx, %rcx
	leaq	3200168(%rsp), %rsi
	xorl	%ebx, %ebx
	.p2align 4,,10
	.p2align 3
.L4:
	movq	(%rcx), %rax
	addq	$8, %rcx
	leaq	-1(%rax), %rdx
	imulq	%rax, %rdx
	movq	%rdx, %rax
	shrq	$63, %rax
	addq	%rdx, %rax
	sarq	%rax
	addq	%rax, %rbx
	cmpq	%rsi, %rcx
	jne	.L4
	xorl	%r12d, %r12d
	leaq	16(%rsp), %r13
	leaq	.LC1(%rip), %rbp
	testq	%rdi, %rdi
	jle	.L6
	.p2align 4,,10
	.p2align 3
.L5:
	movq	0(%r13,%r12,8), %rax
	movq	%rbp, %rsi
	movl	$1, %edi
	addq	$1, %r12
	movq	1600096(%rsp,%rax,8), %rax
	leaq	-1(%rax), %rdx
	imulq	%rdx, %rax
	addq	%rdx, %rdx
	movq	%rax, %rcx
	subq	%rdx, %rcx
	movq	%rcx, %rdx
	shrq	$63, %rdx
	addq	%rcx, %rdx
	movq	%rax, %rcx
	shrq	$63, %rcx
	sarq	%rdx
	addq	%rcx, %rax
	movq	%rbx, %rcx
	sarq	%rax
	subq	%rax, %rcx
	xorl	%eax, %eax
	addq	%rcx, %rdx
	call	__printf_chk@PLT
	cmpq	%r12, 8(%rsp)
	jg	.L5
.L6:
	movq	3200184(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L16
	addq	$3200200, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
.L16:
	.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()
{
    long int n,a[200010],i,ans[200010];

     for(i=0;i<200009;i++)
        ans[i] = 0;

    scanf("%ld",&n);

    for(i=0;i<n;i++)
    {
        scanf("%ld",&a[i]);
        ans[a[i]]++;
    }

    long int sum = 0; 

    for(i=0;i<200009;i++)
    {
        sum += (ans[i]*(ans[i]-1))/2;
    }

    for(i=0;i<n;i++)
    {
        printf("%ld\n",
            sum - (ans[a[i]]*(ans[a[i]]-1))/2 +((ans[a[i]]-2)*(ans[a[i]]-1))/2);
    }

    return 0;
}
8
1 2 1 6 2 1 4 1
 5
0 1 2 1 2
 4
2 2 3 4
 5
3 3 2 3 3
 8
1 3 1 6 2 1 4 1
 5
0 1 2 1 0
 5
0 3 2 3 3
 8
1 3 1 6 2 0 4 1
 8
1 2 1 6 2 0 4 1
 8
1 1 1 6 2 0 4 1

4
6
4
7
6
4
7
4
 2
1
1
1
1
 0
0
1
1
 3
3
6
3
3
 3
6
3
6
6
3
6
3
 1
1
2
1
1
 3
1
3
1
1
 1
3
1
3
3
3
3
1
 2
3
2
4
3
4
4
2
 3
3
3
6
6
6
6
3

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()
{
    long int n,a[200010],i,ans[200010];

     for(i=0;i<200009;i++)
        ans[i] = 0;

    scanf("%ld",&n);

    for(i=0;i<n;i++)
    {
        scanf("%ld",&a[i]);
        ans[a[i]]++;
    }

    long int sum = 0; 

    for(i=0;i<200009;i++)
    {
        sum += (ans[i]*(ans[i]-1))/2;
    }

    for(i=0;i<n;i++)
    {
        printf("%ld\n",
            sum - (ans[a[i]]*(ans[a[i]]-1))/2 +((ans[a[i]]-2)*(ans[a[i]]-1))/2);
    }

    return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%ld"
.LC1:
	.string	"%ld\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	-3198976(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$1232, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movq	$0, -3200192(%rbp)
	jmp	.L2
.L3:
	movq	-3200192(%rbp), %rax
	movq	$0, -1600096(%rbp,%rax,8)
	addq	$1, -3200192(%rbp)
.L2:
	cmpq	$200008, -3200192(%rbp)
	jle	.L3
	leaq	-3200200(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	$0, -3200192(%rbp)
	jmp	.L4
.L5:
	leaq	-3200176(%rbp), %rdx
	movq	-3200192(%rbp), %rax
	salq	$3, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	-3200192(%rbp), %rax
	movq	-3200176(%rbp,%rax,8), %rax
	movq	-1600096(%rbp,%rax,8), %rdx
	addq	$1, %rdx
	movq	%rdx, -1600096(%rbp,%rax,8)
	addq	$1, -3200192(%rbp)
.L4:
	movq	-3200200(%rbp), %rax
	cmpq	%rax, -3200192(%rbp)
	jl	.L5
	movq	$0, -3200184(%rbp)
	movq	$0, -3200192(%rbp)
	jmp	.L6
.L7:
	movq	-3200192(%rbp), %rax
	movq	-1600096(%rbp,%rax,8), %rdx
	movq	-3200192(%rbp), %rax
	movq	-1600096(%rbp,%rax,8), %rax
	subq	$1, %rax
	imulq	%rdx, %rax
	movq	%rax, %rdx
	shrq	$63, %rdx
	addq	%rdx, %rax
	sarq	%rax
	addq	%rax, -3200184(%rbp)
	addq	$1, -3200192(%rbp)
.L6:
	cmpq	$200008, -3200192(%rbp)
	jle	.L7
	movq	$0, -3200192(%rbp)
	jmp	.L8
.L9:
	movq	-3200192(%rbp), %rax
	movq	-3200176(%rbp,%rax,8), %rax
	movq	-1600096(%rbp,%rax,8), %rdx
	movq	-3200192(%rbp), %rax
	movq	-3200176(%rbp,%rax,8), %rax
	movq	-1600096(%rbp,%rax,8), %rax
	subq	$1, %rax
	imulq	%rdx, %rax
	movq	%rax, %rdx
	shrq	$63, %rdx
	addq	%rdx, %rax
	sarq	%rax
	negq	%rax
	movq	%rax, %rdx
	movq	-3200184(%rbp), %rax
	leaq	(%rdx,%rax), %rcx
	movq	-3200192(%rbp), %rax
	movq	-3200176(%rbp,%rax,8), %rax
	movq	-1600096(%rbp,%rax,8), %rax
	leaq	-2(%rax), %rdx
	movq	-3200192(%rbp), %rax
	movq	-3200176(%rbp,%rax,8), %rax
	movq	-1600096(%rbp,%rax,8), %rax
	subq	$1, %rax
	imulq	%rdx, %rax
	movq	%rax, %rdx
	shrq	$63, %rdx
	addq	%rdx, %rax
	sarq	%rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addq	$1, -3200192(%rbp)
.L8:
	movq	-3200200(%rbp), %rax
	cmpq	%rax, -3200192(%rbp)
	jl	.L9
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L11
	call	__stack_chk_fail@PLT
.L11:
	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	"%ld"
.LC1:
	.string	"%ld\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	-3198976(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$1232, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movq	$0, -3200192(%rbp)
	jmp	.L2
.L3:
	movq	-3200192(%rbp), %rax
	movq	$0, -1600096(%rbp,%rax,8)
	addq	$1, -3200192(%rbp)
.L2:
	cmpq	$200008, -3200192(%rbp)
	jle	.L3
	leaq	-3200200(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	$0, -3200192(%rbp)
	jmp	.L4
.L5:
	leaq	-3200176(%rbp), %rdx
	movq	-3200192(%rbp), %rax
	salq	$3, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	-3200192(%rbp), %rax
	movq	-3200176(%rbp,%rax,8), %rax
	movq	-1600096(%rbp,%rax,8), %rdx
	addq	$1, %rdx
	movq	%rdx, -1600096(%rbp,%rax,8)
	addq	$1, -3200192(%rbp)
.L4:
	movq	-3200200(%rbp), %rax
	cmpq	%rax, -3200192(%rbp)
	jl	.L5
	movq	$0, -3200184(%rbp)
	movq	$0, -3200192(%rbp)
	jmp	.L6
.L7:
	movq	-3200192(%rbp), %rax
	movq	-1600096(%rbp,%rax,8), %rdx
	movq	-3200192(%rbp), %rax
	movq	-1600096(%rbp,%rax,8), %rax
	subq	$1, %rax
	imulq	%rdx, %rax
	movq	%rax, %rdx
	shrq	$63, %rdx
	addq	%rdx, %rax
	sarq	%rax
	addq	%rax, -3200184(%rbp)
	addq	$1, -3200192(%rbp)
.L6:
	cmpq	$200008, -3200192(%rbp)
	jle	.L7
	movq	$0, -3200192(%rbp)
	jmp	.L8
.L9:
	movq	-3200192(%rbp), %rax
	movq	-3200176(%rbp,%rax,8), %rax
	movq	-1600096(%rbp,%rax,8), %rdx
	movq	-3200192(%rbp), %rax
	movq	-3200176(%rbp,%rax,8), %rax
	movq	-1600096(%rbp,%rax,8), %rax
	subq	$1, %rax
	imulq	%rdx, %rax
	movq	%rax, %rdx
	shrq	$63, %rdx
	addq	%rdx, %rax
	sarq	%rax
	negq	%rax
	movq	%rax, %rdx
	movq	-3200184(%rbp), %rax
	leaq	(%rdx,%rax), %rcx
	movq	-3200192(%rbp), %rax
	movq	-3200176(%rbp,%rax,8), %rax
	movq	-1600096(%rbp,%rax,8), %rax
	leaq	-2(%rax), %rdx
	movq	-3200192(%rbp), %rax
	movq	-3200176(%rbp,%rax,8), %rax
	movq	-1600096(%rbp,%rax,8), %rax
	subq	$1, %rax
	imulq	%rdx, %rax
	movq	%rax, %rdx
	shrq	$63, %rdx
	addq	%rdx, %rax
	sarq	%rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addq	$1, -3200192(%rbp)
.L8:
	movq	-3200200(%rbp), %rax
	cmpq	%rax, -3200192(%rbp)
	jl	.L9
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L11
	call	__stack_chk_fail@PLT
.L11:
	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:
