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>
#define max 1000

int main(){
  int m,n,u,k,i,j;
  int a[max][max];
  
  scanf("%d",&n);
  
  for(i=0;i<n;i++){
    scanf("%d%d",&u,&k);
    for(j=0;j<k;j++){
      scanf("%d",&m);
      a[u-1][m-1]=1;
    }
  }
  for(i=0;i<n;i++){
    for(j=0;j<n-1;j++){
      printf("%d ",a[i][j]);
    }
    printf("%d\n",a[i][j]);
  }

  return 0;
}

```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%d%d"
.LC2:
	.string	"%d "
.LC3:
	.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	$2352, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-4000036(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -4000024(%rbp)
	jmp	.L2
.L5:
	leaq	-4000028(%rbp), %rdx
	leaq	-4000032(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -4000020(%rbp)
	jmp	.L3
.L4:
	leaq	-4000040(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-4000032(%rbp), %eax
	leal	-1(%rax), %edx
	movl	-4000040(%rbp), %eax
	subl	$1, %eax
	movslq	%eax, %rcx
	movslq	%edx, %rax
	imulq	$1000, %rax, %rax
	addq	%rcx, %rax
	movl	$1, -4000016(%rbp,%rax,4)
	addl	$1, -4000020(%rbp)
.L3:
	movl	-4000028(%rbp), %eax
	cmpl	%eax, -4000020(%rbp)
	jl	.L4
	addl	$1, -4000024(%rbp)
.L2:
	movl	-4000036(%rbp), %eax
	cmpl	%eax, -4000024(%rbp)
	jl	.L5
	movl	$0, -4000024(%rbp)
	jmp	.L6
.L9:
	movl	$0, -4000020(%rbp)
	jmp	.L7
.L8:
	movl	-4000020(%rbp), %eax
	movslq	%eax, %rdx
	movl	-4000024(%rbp), %eax
	cltq
	imulq	$1000, %rax, %rax
	addq	%rdx, %rax
	movl	-4000016(%rbp,%rax,4), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -4000020(%rbp)
.L7:
	movl	-4000036(%rbp), %eax
	subl	$1, %eax
	cmpl	%eax, -4000020(%rbp)
	jl	.L8
	movl	-4000020(%rbp), %eax
	movslq	%eax, %rdx
	movl	-4000024(%rbp), %eax
	cltq
	imulq	$1000, %rax, %rax
	addq	%rdx, %rax
	movl	-4000016(%rbp,%rax,4), %eax
	movl	%eax, %esi
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -4000024(%rbp)
.L6:
	movl	-4000036(%rbp), %eax
	cmpl	%eax, -4000024(%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	"%d"
.LC1:
	.string	"%d%d"
.LC2:
	.string	"%d "
.LC3:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	leaq	-3997696(%rsp), %r11
	.cfi_def_cfa 11, 3997752
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$2344, %rsp
	.cfi_def_cfa_offset 4000096
	leaq	.LC0(%rip), %rbx
	movq	%rbx, %rdi
	movq	%fs:40, %rax
	movq	%rax, 4000024(%rsp)
	xorl	%eax, %eax
	leaq	4(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	4(%rsp), %edx
	testl	%edx, %edx
	jle	.L2
	xorl	%r12d, %r12d
	leaq	12(%rsp), %r15
	leaq	8(%rsp), %r14
	movq	%rsp, %rbp
	.p2align 4,,10
	.p2align 3
.L4:
	movq	%r15, %rdx
	movq	%r14, %rsi
	leaq	.LC1(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	xorl	%r13d, %r13d
	testl	%eax, %eax
	jle	.L6
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	addl	$1, %r13d
	call	__isoc99_scanf@PLT
	movl	(%rsp), %eax
	leal	-1(%rax), %edx
	movl	8(%rsp), %eax
	movslq	%edx, %rdx
	subl	$1, %eax
	cltq
	imulq	$1000, %rax, %rax
	addq	%rdx, %rax
	movl	$1, 16(%rsp,%rax,4)
	cmpl	%r13d, 12(%rsp)
	jg	.L3
.L6:
	movl	4(%rsp), %eax
	addl	$1, %r12d
	cmpl	%r12d, %eax
	jg	.L4
	testl	%eax, %eax
	jle	.L2
	leaq	16(%rsp), %r13
	xorl	%r12d, %r12d
	leaq	.LC3(%rip), %r14
	leaq	.LC2(%rip), %rbp
	.p2align 4,,10
	.p2align 3
.L7:
	movq	%r13, %r15
	xorl	%ebx, %ebx
	cmpl	$1, %eax
	je	.L9
	.p2align 4,,10
	.p2align 3
.L8:
	movl	(%r15), %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	addl	$1, %ebx
	addq	$4, %r15
	call	__printf_chk@PLT
	movl	4(%rsp), %eax
	subl	$1, %eax
	cmpl	%ebx, %eax
	jg	.L8
.L9:
	movslq	%r12d, %rax
	movslq	%ebx, %rbx
	movq	%r14, %rsi
	movl	$1, %edi
	imulq	$1000, %rax, %rax
	addl	$1, %r12d
	addq	$4000, %r13
	addq	%rbx, %rax
	movl	16(%rsp,%rax,4), %edx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	4(%rsp), %eax
	cmpl	%r12d, %eax
	jg	.L7
.L2:
	movq	4000024(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L21
	addq	$4000040, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
.L21:
	.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%d"
.LC2:
	.string	"%d "
.LC3:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	leaq	-3997696(%rsp), %r11
	.cfi_def_cfa 11, 3997752
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$2344, %rsp
	.cfi_def_cfa_offset 4000096
	leaq	.LC0(%rip), %rbx
	movq	%rbx, %rdi
	movq	%fs:40, %rax
	movq	%rax, 4000024(%rsp)
	xorl	%eax, %eax
	leaq	4(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	4(%rsp), %edx
	testl	%edx, %edx
	jle	.L2
	xorl	%r12d, %r12d
	leaq	12(%rsp), %r15
	leaq	8(%rsp), %r14
	movq	%rsp, %rbp
	.p2align 4,,10
	.p2align 3
.L4:
	movq	%r15, %rdx
	movq	%r14, %rsi
	leaq	.LC1(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	xorl	%r13d, %r13d
	testl	%eax, %eax
	jle	.L6
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	addl	$1, %r13d
	call	__isoc99_scanf@PLT
	movl	(%rsp), %eax
	leal	-1(%rax), %edx
	movl	8(%rsp), %eax
	movslq	%edx, %rdx
	subl	$1, %eax
	cltq
	imulq	$1000, %rax, %rax
	addq	%rdx, %rax
	movl	$1, 16(%rsp,%rax,4)
	cmpl	%r13d, 12(%rsp)
	jg	.L3
.L6:
	movl	4(%rsp), %eax
	addl	$1, %r12d
	cmpl	%r12d, %eax
	jg	.L4
	testl	%eax, %eax
	jle	.L2
	leaq	16(%rsp), %r13
	xorl	%r12d, %r12d
	leaq	.LC3(%rip), %r14
	leaq	.LC2(%rip), %rbp
	.p2align 4,,10
	.p2align 3
.L7:
	movq	%r13, %r15
	xorl	%ebx, %ebx
	cmpl	$1, %eax
	je	.L9
	.p2align 4,,10
	.p2align 3
.L8:
	movl	(%r15), %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	addl	$1, %ebx
	addq	$4, %r15
	call	__printf_chk@PLT
	movl	4(%rsp), %eax
	subl	$1, %eax
	cmpl	%ebx, %eax
	jg	.L8
.L9:
	movslq	%r12d, %rax
	movslq	%ebx, %rbx
	movq	%r14, %rsi
	movl	$1, %edi
	imulq	$1000, %rax, %rax
	addl	$1, %r12d
	addq	$4000, %r13
	addq	%rbx, %rax
	movl	16(%rsp,%rax,4), %edx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	4(%rsp), %eax
	cmpl	%r12d, %eax
	jg	.L7
.L2:
	movq	4000024(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L21
	addq	$4000040, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
.L21:
	.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>
#define max 1000

int main(){
  int m,n,u,k,i,j;
  int a[max][max];
  
  scanf("%d",&n);
  
  for(i=0;i<n;i++){
    scanf("%d%d",&u,&k);
    for(j=0;j<k;j++){
      scanf("%d",&m);
      a[u-1][m-1]=1;
    }
  }
  for(i=0;i<n;i++){
    for(j=0;j<n-1;j++){
      printf("%d ",a[i][j]);
    }
    printf("%d\n",a[i][j]);
  }

  return 0;
}


4
1 2 2 4
2 1 1
3 0
4 1 3
 4
1 2 0 4
2 1 1
3 0
4 1 3
 4
1 2 1 4
2 1 1
3 0
4 1 3
 4
1 2 2 4
2 1 4
3 -1
4 1 3
 4
1 2 1 4
2 1 2
3 0
4 1 3
 4
1 2 1 4
2 1 4
1 -1
4 1 3
 4
1 2 2 4
2 1 4
3 -1
4 1 1
 4
1 2 0 4
2 1 2
3 0
4 1 3
 4
1 2 0 4
2 1 4
3 0
0 1 3
 4
1 2 0 4
2 1 3
3 0
4 1 3

0 1 0 1
1 0 0 0
0 0 0 0
0 0 1 0
 0 0 0 0
0 0 0 0
0 0 0 0
1 0 1 0
 1 0 0 1
1 0 0 0
0 0 0 0
0 0 1 0
 0 1 0 1
0 0 0 1
0 0 0 0
0 0 1 0
 1 0 0 1
0 1 0 0
0 0 0 0
0 0 1 0
 1 0 0 1
0 0 0 1
0 0 0 0
0 0 1 0
 0 1 0 1
0 0 0 1
0 0 0 0
1 0 0 0
 0 0 0 0
0 0 0 0
0 0 0 0
1 1 1 0
 0 0 0 0
0 0 0 0
0 0 0 0
1 0 0 1
 0 0 0 0
0 0 0 0
0 0 0 0
1 0 1 0

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>
#define max 1000

int main(){
  int m,n,u,k,i,j;
  int a[max][max];
  
  scanf("%d",&n);
  
  for(i=0;i<n;i++){
    scanf("%d%d",&u,&k);
    for(j=0;j<k;j++){
      scanf("%d",&m);
      a[u-1][m-1]=1;
    }
  }
  for(i=0;i<n;i++){
    for(j=0;j<n-1;j++){
      printf("%d ",a[i][j]);
    }
    printf("%d\n",a[i][j]);
  }

  return 0;
}

```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%d%d"
.LC2:
	.string	"%d "
.LC3:
	.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	$2352, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-4000036(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -4000024(%rbp)
	jmp	.L2
.L5:
	leaq	-4000028(%rbp), %rdx
	leaq	-4000032(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -4000020(%rbp)
	jmp	.L3
.L4:
	leaq	-4000040(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-4000032(%rbp), %eax
	leal	-1(%rax), %edx
	movl	-4000040(%rbp), %eax
	subl	$1, %eax
	movslq	%eax, %rcx
	movslq	%edx, %rax
	imulq	$1000, %rax, %rax
	addq	%rcx, %rax
	movl	$1, -4000016(%rbp,%rax,4)
	addl	$1, -4000020(%rbp)
.L3:
	movl	-4000028(%rbp), %eax
	cmpl	%eax, -4000020(%rbp)
	jl	.L4
	addl	$1, -4000024(%rbp)
.L2:
	movl	-4000036(%rbp), %eax
	cmpl	%eax, -4000024(%rbp)
	jl	.L5
	movl	$0, -4000024(%rbp)
	jmp	.L6
.L9:
	movl	$0, -4000020(%rbp)
	jmp	.L7
.L8:
	movl	-4000020(%rbp), %eax
	movslq	%eax, %rdx
	movl	-4000024(%rbp), %eax
	cltq
	imulq	$1000, %rax, %rax
	addq	%rdx, %rax
	movl	-4000016(%rbp,%rax,4), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -4000020(%rbp)
.L7:
	movl	-4000036(%rbp), %eax
	subl	$1, %eax
	cmpl	%eax, -4000020(%rbp)
	jl	.L8
	movl	-4000020(%rbp), %eax
	movslq	%eax, %rdx
	movl	-4000024(%rbp), %eax
	cltq
	imulq	$1000, %rax, %rax
	addq	%rdx, %rax
	movl	-4000016(%rbp,%rax,4), %eax
	movl	%eax, %esi
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -4000024(%rbp)
.L6:
	movl	-4000036(%rbp), %eax
	cmpl	%eax, -4000024(%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	"%d"
.LC1:
	.string	"%d%d"
.LC2:
	.string	"%d "
.LC3:
	.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	$2352, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-4000036(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -4000024(%rbp)
	jmp	.L2
.L5:
	leaq	-4000028(%rbp), %rdx
	leaq	-4000032(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -4000020(%rbp)
	jmp	.L3
.L4:
	leaq	-4000040(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-4000032(%rbp), %eax
	leal	-1(%rax), %edx
	movl	-4000040(%rbp), %eax
	subl	$1, %eax
	movslq	%eax, %rcx
	movslq	%edx, %rax
	imulq	$1000, %rax, %rax
	addq	%rcx, %rax
	movl	$1, -4000016(%rbp,%rax,4)
	addl	$1, -4000020(%rbp)
.L3:
	movl	-4000028(%rbp), %eax
	cmpl	%eax, -4000020(%rbp)
	jl	.L4
	addl	$1, -4000024(%rbp)
.L2:
	movl	-4000036(%rbp), %eax
	cmpl	%eax, -4000024(%rbp)
	jl	.L5
	movl	$0, -4000024(%rbp)
	jmp	.L6
.L9:
	movl	$0, -4000020(%rbp)
	jmp	.L7
.L8:
	movl	-4000020(%rbp), %eax
	movslq	%eax, %rdx
	movl	-4000024(%rbp), %eax
	cltq
	imulq	$1000, %rax, %rax
	addq	%rdx, %rax
	movl	-4000016(%rbp,%rax,4), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -4000020(%rbp)
.L7:
	movl	-4000036(%rbp), %eax
	subl	$1, %eax
	cmpl	%eax, -4000020(%rbp)
	jl	.L8
	movl	-4000020(%rbp), %eax
	movslq	%eax, %rdx
	movl	-4000024(%rbp), %eax
	cltq
	imulq	$1000, %rax, %rax
	addq	%rdx, %rax
	movl	-4000016(%rbp,%rax,4), %eax
	movl	%eax, %esi
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -4000024(%rbp)
.L6:
	movl	-4000036(%rbp), %eax
	cmpl	%eax, -4000024(%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:
