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(){
  int n,i,j,r[400],t,p,c;
  unsigned long long int a,id[1001];
  while(scanf("%d",&n),n){
    int u[100000]={0};
    int uc[1000]={0};
    for(i=c=0;i<n;i++){
      r[i]=i;
      scanf("%lld %d %lld %d",&id[i],&u[i],&a,&p);
      id[i]+=((10-a)*1000000+p)*10000;//printf("%lld\n",id[i]);
      for(j=i;j;j--){
	if(id[r[j-1]]>id[r[j]]){
	  t=r[j];
	  r[j]=r[j-1];
	  r[j-1]=t;
	}
      }
    }
    for(i=0;i<n;i++){//printf("%lld\n",id[r[i]]);
      if(c<10){
	if(uc[u[r[i]]]<3){
	  uc[u[r[i]]]++;
	  c++;
	  printf("%lld\n",id[r[i]]%10000);
	}
      }
      else if(c<20){
	if(uc[u[r[i]]]<2){
	  uc[u[r[i]]]++;
	  c++;
	  printf("%lld\n",id[r[i]]%10000);
	}
      } 
      else if(c<26){
	if(uc[u[r[i]]]<1){
	  uc[u[r[i]]]++;
	  c++;
	  printf("%lld\n",id[r[i]]%10000);
	}
      }
    }
  }
  return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%lld %d %lld %d"
.LC1:
	.string	"%lld\n"
.LC2:
	.string	"%d"
	.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	-409600(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$4064, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	jmp	.L2
.L13:
	leaq	-400016(%rbp), %rax
	movl	$400000, %edx
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	leaq	-412032(%rbp), %rdx
	movl	$0, %eax
	movl	$500, %ecx
	movq	%rdx, %rdi
	rep stosq
	movl	$0, -413648(%rbp)
	movl	-413648(%rbp), %eax
	movl	%eax, -413656(%rbp)
	jmp	.L3
.L7:
	movl	-413656(%rbp), %eax
	cltq
	movl	-413656(%rbp), %edx
	movl	%edx, -413632(%rbp,%rax,4)
	leaq	-400016(%rbp), %rdx
	movl	-413656(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rax, %rdx
	leaq	-408032(%rbp), %rcx
	movl	-413656(%rbp), %eax
	cltq
	salq	$3, %rax
	leaq	(%rcx,%rax), %rsi
	leaq	-413660(%rbp), %rcx
	leaq	-413640(%rbp), %rax
	movq	%rcx, %r8
	movq	%rax, %rcx
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-413656(%rbp), %eax
	cltq
	movq	-408032(%rbp,%rax,8), %rdx
	movq	-413640(%rbp), %rax
	imulq	$-1000000, %rax, %rcx
	movl	-413660(%rbp), %eax
	cltq
	addq	%rcx, %rax
	imulq	$10000, %rax, %rax
	addq	%rax, %rdx
	movabsq	$100000000000, %rax
	addq	%rax, %rdx
	movl	-413656(%rbp), %eax
	cltq
	movq	%rdx, -408032(%rbp,%rax,8)
	movl	-413656(%rbp), %eax
	movl	%eax, -413652(%rbp)
	jmp	.L4
.L6:
	movl	-413652(%rbp), %eax
	subl	$1, %eax
	cltq
	movl	-413632(%rbp,%rax,4), %eax
	cltq
	movq	-408032(%rbp,%rax,8), %rdx
	movl	-413652(%rbp), %eax
	cltq
	movl	-413632(%rbp,%rax,4), %eax
	cltq
	movq	-408032(%rbp,%rax,8), %rax
	cmpq	%rax, %rdx
	jbe	.L5
	movl	-413652(%rbp), %eax
	cltq
	movl	-413632(%rbp,%rax,4), %eax
	movl	%eax, -413644(%rbp)
	movl	-413652(%rbp), %eax
	subl	$1, %eax
	cltq
	movl	-413632(%rbp,%rax,4), %edx
	movl	-413652(%rbp), %eax
	cltq
	movl	%edx, -413632(%rbp,%rax,4)
	movl	-413652(%rbp), %eax
	subl	$1, %eax
	cltq
	movl	-413644(%rbp), %edx
	movl	%edx, -413632(%rbp,%rax,4)
.L5:
	subl	$1, -413652(%rbp)
.L4:
	cmpl	$0, -413652(%rbp)
	jne	.L6
	addl	$1, -413656(%rbp)
.L3:
	movl	-413664(%rbp), %eax
	cmpl	%eax, -413656(%rbp)
	jl	.L7
	movl	$0, -413656(%rbp)
	jmp	.L8
.L12:
	cmpl	$9, -413648(%rbp)
	jg	.L9
	movl	-413656(%rbp), %eax
	cltq
	movl	-413632(%rbp,%rax,4), %eax
	cltq
	movl	-400016(%rbp,%rax,4), %eax
	cltq
	movl	-412032(%rbp,%rax,4), %eax
	cmpl	$2, %eax
	jg	.L10
	movl	-413656(%rbp), %eax
	cltq
	movl	-413632(%rbp,%rax,4), %eax
	cltq
	movl	-400016(%rbp,%rax,4), %eax
	movslq	%eax, %rdx
	movl	-412032(%rbp,%rdx,4), %edx
	addl	$1, %edx
	cltq
	movl	%edx, -412032(%rbp,%rax,4)
	addl	$1, -413648(%rbp)
	movl	-413656(%rbp), %eax
	cltq
	movl	-413632(%rbp,%rax,4), %eax
	cltq
	movq	-408032(%rbp,%rax,8), %rcx
	movabsq	$3777893186295716171, %rdx
	movq	%rcx, %rax
	mulq	%rdx
	movq	%rdx, %rax
	shrq	$11, %rax
	imulq	$10000, %rax, %rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L10
.L9:
	cmpl	$19, -413648(%rbp)
	jg	.L11
	movl	-413656(%rbp), %eax
	cltq
	movl	-413632(%rbp,%rax,4), %eax
	cltq
	movl	-400016(%rbp,%rax,4), %eax
	cltq
	movl	-412032(%rbp,%rax,4), %eax
	cmpl	$1, %eax
	jg	.L10
	movl	-413656(%rbp), %eax
	cltq
	movl	-413632(%rbp,%rax,4), %eax
	cltq
	movl	-400016(%rbp,%rax,4), %eax
	movslq	%eax, %rdx
	movl	-412032(%rbp,%rdx,4), %edx
	addl	$1, %edx
	cltq
	movl	%edx, -412032(%rbp,%rax,4)
	addl	$1, -413648(%rbp)
	movl	-413656(%rbp), %eax
	cltq
	movl	-413632(%rbp,%rax,4), %eax
	cltq
	movq	-408032(%rbp,%rax,8), %rcx
	movabsq	$3777893186295716171, %rdx
	movq	%rcx, %rax
	mulq	%rdx
	movq	%rdx, %rax
	shrq	$11, %rax
	imulq	$10000, %rax, %rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L10
.L11:
	cmpl	$25, -413648(%rbp)
	jg	.L10
	movl	-413656(%rbp), %eax
	cltq
	movl	-413632(%rbp,%rax,4), %eax
	cltq
	movl	-400016(%rbp,%rax,4), %eax
	cltq
	movl	-412032(%rbp,%rax,4), %eax
	testl	%eax, %eax
	jg	.L10
	movl	-413656(%rbp), %eax
	cltq
	movl	-413632(%rbp,%rax,4), %eax
	cltq
	movl	-400016(%rbp,%rax,4), %eax
	movslq	%eax, %rdx
	movl	-412032(%rbp,%rdx,4), %edx
	addl	$1, %edx
	cltq
	movl	%edx, -412032(%rbp,%rax,4)
	addl	$1, -413648(%rbp)
	movl	-413656(%rbp), %eax
	cltq
	movl	-413632(%rbp,%rax,4), %eax
	cltq
	movq	-408032(%rbp,%rax,8), %rcx
	movabsq	$3777893186295716171, %rdx
	movq	%rcx, %rax
	mulq	%rdx
	movq	%rdx, %rax
	shrq	$11, %rax
	imulq	$10000, %rax, %rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L10:
	addl	$1, -413656(%rbp)
.L8:
	movl	-413664(%rbp), %eax
	cmpl	%eax, -413656(%rbp)
	jl	.L12
.L2:
	leaq	-413664(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-413664(%rbp), %eax
	testl	%eax, %eax
	jne	.L13
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L15
	call	__stack_chk_fail@PLT
.L15:
	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	"%lld %d %lld %d"
.LC1:
	.string	"%lld\n"
.LC2:
	.string	"%d"
	.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	-409600(%rsp), %r11
	.cfi_def_cfa 11, 409656
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$4072, %rsp
	.cfi_def_cfa_offset 413728
	movq	%fs:40, %rax
	movq	%rax, 413656(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rax
	movq	%rax, 8(%rsp)
	.p2align 4,,10
	.p2align 3
.L2:
	movq	8(%rsp), %rsi
	leaq	.LC2(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	16(%rsp), %ebx
	testl	%ebx, %ebx
	je	.L25
	leaq	13648(%rsp), %r9
	movl	$400000, %edx
	xorl	%esi, %esi
	movq	%r9, %rdi
	call	memset@PLT
	leaq	1632(%rsp), %rdi
	movl	$500, %ecx
	movq	%rax, %r9
	xorl	%eax, %eax
	rep stosq
	testl	%ebx, %ebx
	jle	.L2
	leaq	24(%rsp), %rax
	leaq	20(%rsp), %r14
	movq	%r9, %rdx
	movl	$0, 32(%rsp)
	movq	%rax, (%rsp)
	movq	%rax, %rcx
	movq	%r14, %r8
	xorl	%eax, %eax
	leaq	.LC0(%rip), %rdi
	leaq	5632(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movslq	20(%rsp), %rdx
	imulq	$-1000000, 24(%rsp), %rax
	movabsq	$100000000000, %rdi
	addq	%rdx, %rax
	imulq	$10000, %rax, %rax
	addq	%rdi, %rax
	addq	%rax, 5632(%rsp)
	movl	16(%rsp), %eax
	cmpl	$1, %eax
	jle	.L14
	leaq	36(%rsp), %r12
	movl	$1, %ebp
	leaq	32(%rsp), %rbx
	leaq	13652(%rsp), %r13
	leaq	5640(%rsp), %r15
	movq	%r13, %rax
	movq	%r12, %r13
	movq	%rax, %r12
	.p2align 4,,10
	.p2align 3
.L6:
	movl	%ebp, 0(%r13)
	movq	(%rsp), %rcx
	movq	%r14, %r8
	movq	%r12, %rdx
	movq	%r15, %rsi
	leaq	.LC0(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movslq	20(%rsp), %rax
	movd	%ebp, %xmm0
	imulq	$-1000000, 24(%rsp), %rcx
	addq	%rax, %rcx
	movabsq	$100000000000, %rax
	imulq	$10000, %rcx, %rcx
	addq	%rax, %rcx
	addq	(%r15), %rcx
	movq	%r13, %rax
	movq	%rcx, (%r15)
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L27:
	movq	%xmm1, -4(%rax)
	subq	$4, %rax
	cmpq	%rbx, %rax
	je	.L26
.L5:
	movslq	-4(%rax), %rsi
	movdqa	%xmm0, %xmm1
	movd	%esi, %xmm2
	movq	%rsi, %rdx
	movq	5632(%rsp,%rsi,8), %rsi
	punpckldq	%xmm2, %xmm1
	cmpq	%rcx, %rsi
	ja	.L27
	subq	$4, %rax
	movq	%rsi, %rcx
	movd	%edx, %xmm0
	cmpq	%rbx, %rax
	jne	.L5
.L26:
	movl	16(%rsp), %eax
	addl	$1, %ebp
	addq	$4, %r13
	addq	$8, %r15
	addq	$4, %r12
	cmpl	%ebp, %eax
	jg	.L6
.L14:
	testl	%eax, %eax
	jle	.L2
	leaq	32(%rsp), %rbp
	xorl	%r12d, %r12d
	xorl	%ebx, %ebx
	leaq	.LC1(%rip), %r14
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L28:
	movslq	0(%rbp), %rcx
	movslq	13648(%rsp,%rcx,4), %rsi
	movl	1632(%rsp,%rsi,4), %edx
	cmpl	$2, %edx
	jle	.L23
.L9:
	addl	$1, %ebx
	addq	$4, %rbp
	cmpl	%eax, %ebx
	jge	.L2
.L11:
	cmpl	$9, %r12d
	jle	.L28
	cmpl	$19, %r12d
	jg	.L10
	movslq	0(%rbp), %rcx
	movslq	13648(%rsp,%rcx,4), %rsi
	movl	1632(%rsp,%rsi,4), %edx
	cmpl	$1, %edx
	jg	.L9
.L23:
	movq	5632(%rsp,%rcx,8), %rcx
	addl	$1, %edx
	addl	$1, %r12d
	movabsq	$3777893186295716171, %rax
	movl	%edx, 1632(%rsp,%rsi,4)
	mulq	%rcx
	shrq	$11, %rdx
	imulq	$10000, %rdx, %rdx
	subq	%rdx, %rcx
.L22:
	movq	%rcx, %rdx
	movq	%r14, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	16(%rsp), %eax
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L10:
	cmpl	$25, %r12d
	jg	.L9
	movslq	0(%rbp), %rcx
	movslq	13648(%rsp,%rcx,4), %rsi
	movl	1632(%rsp,%rsi,4), %edx
	testl	%edx, %edx
	jg	.L9
	movq	5632(%rsp,%rcx,8), %rcx
	addl	$1, %edx
	addl	$1, %r12d
	movabsq	$3777893186295716171, %rax
	movl	%edx, 1632(%rsp,%rsi,4)
	mulq	%rcx
	shrq	$11, %rdx
	imulq	$10000, %rdx, %rax
	subq	%rax, %rcx
	jmp	.L22
.L25:
	movq	413656(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L29
	addq	$413672, %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
.L29:
	.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	"%lld %d %lld %d"
.LC1:
	.string	"%lld\n"
.LC2:
	.string	"%d"
	.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	-409600(%rsp), %r11
	.cfi_def_cfa 11, 409656
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$4072, %rsp
	.cfi_def_cfa_offset 413728
	movq	%fs:40, %rax
	movq	%rax, 413656(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rax
	movq	%rax, 8(%rsp)
	.p2align 4,,10
	.p2align 3
.L2:
	movq	8(%rsp), %rsi
	leaq	.LC2(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	16(%rsp), %ebx
	testl	%ebx, %ebx
	je	.L25
	leaq	13648(%rsp), %r9
	movl	$400000, %edx
	xorl	%esi, %esi
	movq	%r9, %rdi
	call	memset@PLT
	leaq	1632(%rsp), %rdi
	movl	$500, %ecx
	movq	%rax, %r9
	xorl	%eax, %eax
	rep stosq
	testl	%ebx, %ebx
	jle	.L2
	leaq	24(%rsp), %rax
	leaq	20(%rsp), %r14
	movq	%r9, %rdx
	movl	$0, 32(%rsp)
	movq	%rax, (%rsp)
	movq	%rax, %rcx
	movq	%r14, %r8
	xorl	%eax, %eax
	leaq	.LC0(%rip), %rdi
	leaq	5632(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movslq	20(%rsp), %rdx
	imulq	$-1000000, 24(%rsp), %rax
	movabsq	$100000000000, %rdi
	addq	%rdx, %rax
	imulq	$10000, %rax, %rax
	addq	%rdi, %rax
	addq	%rax, 5632(%rsp)
	movl	16(%rsp), %eax
	cmpl	$1, %eax
	jle	.L14
	leaq	36(%rsp), %r12
	movl	$1, %ebp
	leaq	32(%rsp), %rbx
	leaq	13652(%rsp), %r13
	leaq	5640(%rsp), %r15
	movq	%r13, %rax
	movq	%r12, %r13
	movq	%rax, %r12
	.p2align 4,,10
	.p2align 3
.L6:
	movl	%ebp, 0(%r13)
	movq	(%rsp), %rcx
	movq	%r14, %r8
	movq	%r12, %rdx
	movq	%r15, %rsi
	leaq	.LC0(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movslq	20(%rsp), %rax
	movd	%ebp, %xmm0
	imulq	$-1000000, 24(%rsp), %rcx
	addq	%rax, %rcx
	movabsq	$100000000000, %rax
	imulq	$10000, %rcx, %rcx
	addq	%rax, %rcx
	addq	(%r15), %rcx
	movq	%r13, %rax
	movq	%rcx, (%r15)
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L27:
	movq	%xmm1, -4(%rax)
	subq	$4, %rax
	cmpq	%rbx, %rax
	je	.L26
.L5:
	movslq	-4(%rax), %rsi
	movdqa	%xmm0, %xmm1
	movd	%esi, %xmm2
	movq	%rsi, %rdx
	movq	5632(%rsp,%rsi,8), %rsi
	punpckldq	%xmm2, %xmm1
	cmpq	%rcx, %rsi
	ja	.L27
	subq	$4, %rax
	movq	%rsi, %rcx
	movd	%edx, %xmm0
	cmpq	%rbx, %rax
	jne	.L5
.L26:
	movl	16(%rsp), %eax
	addl	$1, %ebp
	addq	$4, %r13
	addq	$8, %r15
	addq	$4, %r12
	cmpl	%ebp, %eax
	jg	.L6
.L14:
	testl	%eax, %eax
	jle	.L2
	leaq	32(%rsp), %rbp
	xorl	%r12d, %r12d
	xorl	%ebx, %ebx
	leaq	.LC1(%rip), %r14
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L28:
	movslq	0(%rbp), %rcx
	movslq	13648(%rsp,%rcx,4), %rsi
	movl	1632(%rsp,%rsi,4), %edx
	cmpl	$2, %edx
	jle	.L23
.L9:
	addl	$1, %ebx
	addq	$4, %rbp
	cmpl	%eax, %ebx
	jge	.L2
.L11:
	cmpl	$9, %r12d
	jle	.L28
	cmpl	$19, %r12d
	jg	.L10
	movslq	0(%rbp), %rcx
	movslq	13648(%rsp,%rcx,4), %rsi
	movl	1632(%rsp,%rsi,4), %edx
	cmpl	$1, %edx
	jg	.L9
.L23:
	movq	5632(%rsp,%rcx,8), %rcx
	addl	$1, %edx
	addl	$1, %r12d
	movabsq	$3777893186295716171, %rax
	movl	%edx, 1632(%rsp,%rsi,4)
	mulq	%rcx
	shrq	$11, %rdx
	imulq	$10000, %rdx, %rdx
	subq	%rdx, %rcx
.L22:
	movq	%rcx, %rdx
	movq	%r14, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	16(%rsp), %eax
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L10:
	cmpl	$25, %r12d
	jg	.L9
	movslq	0(%rbp), %rcx
	movslq	13648(%rsp,%rcx,4), %rsi
	movl	1632(%rsp,%rsi,4), %edx
	testl	%edx, %edx
	jg	.L9
	movq	5632(%rsp,%rcx,8), %rcx
	addl	$1, %edx
	addl	$1, %r12d
	movabsq	$3777893186295716171, %rax
	movl	%edx, 1632(%rsp,%rsi,4)
	mulq	%rcx
	shrq	$11, %rdx
	imulq	$10000, %rdx, %rax
	subq	%rax, %rcx
	jmp	.L22
.L25:
	movq	413656(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L29
	addq	$413672, %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
.L29:
	.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(){
  int n,i,j,r[400],t,p,c;
  unsigned long long int a,id[1001];
  while(scanf("%d",&n),n){
    int u[100000]={0};
    int uc[1000]={0};
    for(i=c=0;i<n;i++){
      r[i]=i;
      scanf("%lld %d %lld %d",&id[i],&u[i],&a,&p);
      id[i]+=((10-a)*1000000+p)*10000;//printf("%lld\n",id[i]);
      for(j=i;j;j--){
	if(id[r[j-1]]>id[r[j]]){
	  t=r[j];
	  r[j]=r[j-1];
	  r[j-1]=t;
	}
      }
    }
    for(i=0;i<n;i++){//printf("%lld\n",id[r[i]]);
      if(c<10){
	if(uc[u[r[i]]]<3){
	  uc[u[r[i]]]++;
	  c++;
	  printf("%lld\n",id[r[i]]%10000);
	}
      }
      else if(c<20){
	if(uc[u[r[i]]]<2){
	  uc[u[r[i]]]++;
	  c++;
	  printf("%lld\n",id[r[i]]%10000);
	}
      } 
      else if(c<26){
	if(uc[u[r[i]]]<1){
	  uc[u[r[i]]]++;
	  c++;
	  printf("%lld\n",id[r[i]]%10000);
	}
      }
    }
  }
  return 0;
}
6
1 1 6 200
2 1 11 300
3 1 6 400
4 2 5 1200
5 1 5 1400
6 3 4 800
3
777 1 5 300
808 2 4 20
123 3 6 500
2
2 1 3 100
1 1 3 100
0
 6
1 1 6 200
2 1 11 300
3 0 6 400
4 2 5 1200
5 1 5 1400
6 3 4 800
3
777 1 5 300
808 2 4 20
123 3 6 500
2
2 1 3 100
1 1 3 100
0
 6
1 1 6 200
2 1 11 300
3 0 6 400
4 2 5 1200
5 1 5 1674
6 4 4 800
3
777 1 5 300
808 2 4 20
123 3 6 500
2
2 1 3 100
1 1 2 100
0
 6
1 1 6 200
2 1 11 300
3 0 1 400
4 0 5 1200
5 0 5 1674
6 4 4 9
3
777 1 5 300
808 2 4 20
123 3 6 500
2
2 1 3 100
1 1 2 100
0
 6
1 1 6 200
2 1 11 300
3 0 1 400
4 0 5 1200
5 0 5 1674
6 4 4 9
3
1015 1 5 300
808 2 4 20
123 3 6 500
2
2 1 3 100
1 1 2 100
0
 6
1 1 6 200
2 1 6 300
3 1 6 400
4 2 5 1200
5 1 5 1400
6 3 4 800
3
777 1 5 300
808 2 4 38
123 3 6 500
2
2 1 3 100
1 1 3 100
0
 6
1 1 6 200
2 1 11 300
3 0 6 400
4 2 5 1200
5 1 5 1400
6 3 4 800
3
187 1 5 300
808 2 4 20
123 3 6 500
2
2 1 3 100
1 1 3 100
0
 6
1 1 6 200
2 1 11 300
3 0 6 400
4 2 5 1200
5 1 5 1674
6 4 4 800
3
777 1 5 300
34 2 4 20
123 3 6 500
2
2 1 3 100
1 1 2 100
0
 6
1 1 6 200
2 1 11 300
3 0 6 400
4 2 5 1200
5 0 5 1674
6 4 4 800
3
777 1 5 300
808 2 4 20
123 3 6 500
2
4 1 3 100
1 1 2 100
0
 6
1 0 6 200
2 1 11 300
3 0 1 400
4 0 5 1200
5 0 5 1674
6 4 4 9
3
777 1 5 300
808 2 4 20
123 3 6 500
2
2 1 3 100
1 1 2 100
0

1
3
4
5
6
123
777
808
1
2
 1
3
4
5
6
1618
123
777
808
1
2
 1
3
4
5
6
1618
123
777
808
2
1
 1
4
5
6
3
1618
123
777
808
2
1
 1
4
5
6
3
1618
123
1015
808
2
1
 1
2
3
4
6
123
777
808
1
2
 1
3
4
5
6
1618
123
187
808
1
2
 1
3
4
5
6
1618
123
777
34
2
1
 1
3
4
5
6
1618
123
777
808
4
1
 1
4
5
6
1618
123
777
808
2
1

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(){
  int n,i,j,r[400],t,p,c;
  unsigned long long int a,id[1001];
  while(scanf("%d",&n),n){
    int u[100000]={0};
    int uc[1000]={0};
    for(i=c=0;i<n;i++){
      r[i]=i;
      scanf("%lld %d %lld %d",&id[i],&u[i],&a,&p);
      id[i]+=((10-a)*1000000+p)*10000;//printf("%lld\n",id[i]);
      for(j=i;j;j--){
	if(id[r[j-1]]>id[r[j]]){
	  t=r[j];
	  r[j]=r[j-1];
	  r[j-1]=t;
	}
      }
    }
    for(i=0;i<n;i++){//printf("%lld\n",id[r[i]]);
      if(c<10){
	if(uc[u[r[i]]]<3){
	  uc[u[r[i]]]++;
	  c++;
	  printf("%lld\n",id[r[i]]%10000);
	}
      }
      else if(c<20){
	if(uc[u[r[i]]]<2){
	  uc[u[r[i]]]++;
	  c++;
	  printf("%lld\n",id[r[i]]%10000);
	}
      } 
      else if(c<26){
	if(uc[u[r[i]]]<1){
	  uc[u[r[i]]]++;
	  c++;
	  printf("%lld\n",id[r[i]]%10000);
	}
      }
    }
  }
  return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%lld %d %lld %d"
.LC1:
	.string	"%lld\n"
.LC2:
	.string	"%d"
	.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	-409600(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$4064, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	jmp	.L2
.L13:
	leaq	-400016(%rbp), %rax
	movl	$400000, %edx
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	leaq	-412032(%rbp), %rdx
	movl	$0, %eax
	movl	$500, %ecx
	movq	%rdx, %rdi
	rep stosq
	movl	$0, -413648(%rbp)
	movl	-413648(%rbp), %eax
	movl	%eax, -413656(%rbp)
	jmp	.L3
.L7:
	movl	-413656(%rbp), %eax
	cltq
	movl	-413656(%rbp), %edx
	movl	%edx, -413632(%rbp,%rax,4)
	leaq	-400016(%rbp), %rdx
	movl	-413656(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rax, %rdx
	leaq	-408032(%rbp), %rcx
	movl	-413656(%rbp), %eax
	cltq
	salq	$3, %rax
	leaq	(%rcx,%rax), %rsi
	leaq	-413660(%rbp), %rcx
	leaq	-413640(%rbp), %rax
	movq	%rcx, %r8
	movq	%rax, %rcx
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-413656(%rbp), %eax
	cltq
	movq	-408032(%rbp,%rax,8), %rdx
	movq	-413640(%rbp), %rax
	imulq	$-1000000, %rax, %rcx
	movl	-413660(%rbp), %eax
	cltq
	addq	%rcx, %rax
	imulq	$10000, %rax, %rax
	addq	%rax, %rdx
	movabsq	$100000000000, %rax
	addq	%rax, %rdx
	movl	-413656(%rbp), %eax
	cltq
	movq	%rdx, -408032(%rbp,%rax,8)
	movl	-413656(%rbp), %eax
	movl	%eax, -413652(%rbp)
	jmp	.L4
.L6:
	movl	-413652(%rbp), %eax
	subl	$1, %eax
	cltq
	movl	-413632(%rbp,%rax,4), %eax
	cltq
	movq	-408032(%rbp,%rax,8), %rdx
	movl	-413652(%rbp), %eax
	cltq
	movl	-413632(%rbp,%rax,4), %eax
	cltq
	movq	-408032(%rbp,%rax,8), %rax
	cmpq	%rax, %rdx
	jbe	.L5
	movl	-413652(%rbp), %eax
	cltq
	movl	-413632(%rbp,%rax,4), %eax
	movl	%eax, -413644(%rbp)
	movl	-413652(%rbp), %eax
	subl	$1, %eax
	cltq
	movl	-413632(%rbp,%rax,4), %edx
	movl	-413652(%rbp), %eax
	cltq
	movl	%edx, -413632(%rbp,%rax,4)
	movl	-413652(%rbp), %eax
	subl	$1, %eax
	cltq
	movl	-413644(%rbp), %edx
	movl	%edx, -413632(%rbp,%rax,4)
.L5:
	subl	$1, -413652(%rbp)
.L4:
	cmpl	$0, -413652(%rbp)
	jne	.L6
	addl	$1, -413656(%rbp)
.L3:
	movl	-413664(%rbp), %eax
	cmpl	%eax, -413656(%rbp)
	jl	.L7
	movl	$0, -413656(%rbp)
	jmp	.L8
.L12:
	cmpl	$9, -413648(%rbp)
	jg	.L9
	movl	-413656(%rbp), %eax
	cltq
	movl	-413632(%rbp,%rax,4), %eax
	cltq
	movl	-400016(%rbp,%rax,4), %eax
	cltq
	movl	-412032(%rbp,%rax,4), %eax
	cmpl	$2, %eax
	jg	.L10
	movl	-413656(%rbp), %eax
	cltq
	movl	-413632(%rbp,%rax,4), %eax
	cltq
	movl	-400016(%rbp,%rax,4), %eax
	movslq	%eax, %rdx
	movl	-412032(%rbp,%rdx,4), %edx
	addl	$1, %edx
	cltq
	movl	%edx, -412032(%rbp,%rax,4)
	addl	$1, -413648(%rbp)
	movl	-413656(%rbp), %eax
	cltq
	movl	-413632(%rbp,%rax,4), %eax
	cltq
	movq	-408032(%rbp,%rax,8), %rcx
	movabsq	$3777893186295716171, %rdx
	movq	%rcx, %rax
	mulq	%rdx
	movq	%rdx, %rax
	shrq	$11, %rax
	imulq	$10000, %rax, %rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L10
.L9:
	cmpl	$19, -413648(%rbp)
	jg	.L11
	movl	-413656(%rbp), %eax
	cltq
	movl	-413632(%rbp,%rax,4), %eax
	cltq
	movl	-400016(%rbp,%rax,4), %eax
	cltq
	movl	-412032(%rbp,%rax,4), %eax
	cmpl	$1, %eax
	jg	.L10
	movl	-413656(%rbp), %eax
	cltq
	movl	-413632(%rbp,%rax,4), %eax
	cltq
	movl	-400016(%rbp,%rax,4), %eax
	movslq	%eax, %rdx
	movl	-412032(%rbp,%rdx,4), %edx
	addl	$1, %edx
	cltq
	movl	%edx, -412032(%rbp,%rax,4)
	addl	$1, -413648(%rbp)
	movl	-413656(%rbp), %eax
	cltq
	movl	-413632(%rbp,%rax,4), %eax
	cltq
	movq	-408032(%rbp,%rax,8), %rcx
	movabsq	$3777893186295716171, %rdx
	movq	%rcx, %rax
	mulq	%rdx
	movq	%rdx, %rax
	shrq	$11, %rax
	imulq	$10000, %rax, %rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L10
.L11:
	cmpl	$25, -413648(%rbp)
	jg	.L10
	movl	-413656(%rbp), %eax
	cltq
	movl	-413632(%rbp,%rax,4), %eax
	cltq
	movl	-400016(%rbp,%rax,4), %eax
	cltq
	movl	-412032(%rbp,%rax,4), %eax
	testl	%eax, %eax
	jg	.L10
	movl	-413656(%rbp), %eax
	cltq
	movl	-413632(%rbp,%rax,4), %eax
	cltq
	movl	-400016(%rbp,%rax,4), %eax
	movslq	%eax, %rdx
	movl	-412032(%rbp,%rdx,4), %edx
	addl	$1, %edx
	cltq
	movl	%edx, -412032(%rbp,%rax,4)
	addl	$1, -413648(%rbp)
	movl	-413656(%rbp), %eax
	cltq
	movl	-413632(%rbp,%rax,4), %eax
	cltq
	movq	-408032(%rbp,%rax,8), %rcx
	movabsq	$3777893186295716171, %rdx
	movq	%rcx, %rax
	mulq	%rdx
	movq	%rdx, %rax
	shrq	$11, %rax
	imulq	$10000, %rax, %rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L10:
	addl	$1, -413656(%rbp)
.L8:
	movl	-413664(%rbp), %eax
	cmpl	%eax, -413656(%rbp)
	jl	.L12
.L2:
	leaq	-413664(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-413664(%rbp), %eax
	testl	%eax, %eax
	jne	.L13
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L15
	call	__stack_chk_fail@PLT
.L15:
	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	"%lld %d %lld %d"
.LC1:
	.string	"%lld\n"
.LC2:
	.string	"%d"
	.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	-409600(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$4064, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	jmp	.L2
.L13:
	leaq	-400016(%rbp), %rax
	movl	$400000, %edx
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	leaq	-412032(%rbp), %rdx
	movl	$0, %eax
	movl	$500, %ecx
	movq	%rdx, %rdi
	rep stosq
	movl	$0, -413648(%rbp)
	movl	-413648(%rbp), %eax
	movl	%eax, -413656(%rbp)
	jmp	.L3
.L7:
	movl	-413656(%rbp), %eax
	cltq
	movl	-413656(%rbp), %edx
	movl	%edx, -413632(%rbp,%rax,4)
	leaq	-400016(%rbp), %rdx
	movl	-413656(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rax, %rdx
	leaq	-408032(%rbp), %rcx
	movl	-413656(%rbp), %eax
	cltq
	salq	$3, %rax
	leaq	(%rcx,%rax), %rsi
	leaq	-413660(%rbp), %rcx
	leaq	-413640(%rbp), %rax
	movq	%rcx, %r8
	movq	%rax, %rcx
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-413656(%rbp), %eax
	cltq
	movq	-408032(%rbp,%rax,8), %rdx
	movq	-413640(%rbp), %rax
	imulq	$-1000000, %rax, %rcx
	movl	-413660(%rbp), %eax
	cltq
	addq	%rcx, %rax
	imulq	$10000, %rax, %rax
	addq	%rax, %rdx
	movabsq	$100000000000, %rax
	addq	%rax, %rdx
	movl	-413656(%rbp), %eax
	cltq
	movq	%rdx, -408032(%rbp,%rax,8)
	movl	-413656(%rbp), %eax
	movl	%eax, -413652(%rbp)
	jmp	.L4
.L6:
	movl	-413652(%rbp), %eax
	subl	$1, %eax
	cltq
	movl	-413632(%rbp,%rax,4), %eax
	cltq
	movq	-408032(%rbp,%rax,8), %rdx
	movl	-413652(%rbp), %eax
	cltq
	movl	-413632(%rbp,%rax,4), %eax
	cltq
	movq	-408032(%rbp,%rax,8), %rax
	cmpq	%rax, %rdx
	jbe	.L5
	movl	-413652(%rbp), %eax
	cltq
	movl	-413632(%rbp,%rax,4), %eax
	movl	%eax, -413644(%rbp)
	movl	-413652(%rbp), %eax
	subl	$1, %eax
	cltq
	movl	-413632(%rbp,%rax,4), %edx
	movl	-413652(%rbp), %eax
	cltq
	movl	%edx, -413632(%rbp,%rax,4)
	movl	-413652(%rbp), %eax
	subl	$1, %eax
	cltq
	movl	-413644(%rbp), %edx
	movl	%edx, -413632(%rbp,%rax,4)
.L5:
	subl	$1, -413652(%rbp)
.L4:
	cmpl	$0, -413652(%rbp)
	jne	.L6
	addl	$1, -413656(%rbp)
.L3:
	movl	-413664(%rbp), %eax
	cmpl	%eax, -413656(%rbp)
	jl	.L7
	movl	$0, -413656(%rbp)
	jmp	.L8
.L12:
	cmpl	$9, -413648(%rbp)
	jg	.L9
	movl	-413656(%rbp), %eax
	cltq
	movl	-413632(%rbp,%rax,4), %eax
	cltq
	movl	-400016(%rbp,%rax,4), %eax
	cltq
	movl	-412032(%rbp,%rax,4), %eax
	cmpl	$2, %eax
	jg	.L10
	movl	-413656(%rbp), %eax
	cltq
	movl	-413632(%rbp,%rax,4), %eax
	cltq
	movl	-400016(%rbp,%rax,4), %eax
	movslq	%eax, %rdx
	movl	-412032(%rbp,%rdx,4), %edx
	addl	$1, %edx
	cltq
	movl	%edx, -412032(%rbp,%rax,4)
	addl	$1, -413648(%rbp)
	movl	-413656(%rbp), %eax
	cltq
	movl	-413632(%rbp,%rax,4), %eax
	cltq
	movq	-408032(%rbp,%rax,8), %rcx
	movabsq	$3777893186295716171, %rdx
	movq	%rcx, %rax
	mulq	%rdx
	movq	%rdx, %rax
	shrq	$11, %rax
	imulq	$10000, %rax, %rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L10
.L9:
	cmpl	$19, -413648(%rbp)
	jg	.L11
	movl	-413656(%rbp), %eax
	cltq
	movl	-413632(%rbp,%rax,4), %eax
	cltq
	movl	-400016(%rbp,%rax,4), %eax
	cltq
	movl	-412032(%rbp,%rax,4), %eax
	cmpl	$1, %eax
	jg	.L10
	movl	-413656(%rbp), %eax
	cltq
	movl	-413632(%rbp,%rax,4), %eax
	cltq
	movl	-400016(%rbp,%rax,4), %eax
	movslq	%eax, %rdx
	movl	-412032(%rbp,%rdx,4), %edx
	addl	$1, %edx
	cltq
	movl	%edx, -412032(%rbp,%rax,4)
	addl	$1, -413648(%rbp)
	movl	-413656(%rbp), %eax
	cltq
	movl	-413632(%rbp,%rax,4), %eax
	cltq
	movq	-408032(%rbp,%rax,8), %rcx
	movabsq	$3777893186295716171, %rdx
	movq	%rcx, %rax
	mulq	%rdx
	movq	%rdx, %rax
	shrq	$11, %rax
	imulq	$10000, %rax, %rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L10
.L11:
	cmpl	$25, -413648(%rbp)
	jg	.L10
	movl	-413656(%rbp), %eax
	cltq
	movl	-413632(%rbp,%rax,4), %eax
	cltq
	movl	-400016(%rbp,%rax,4), %eax
	cltq
	movl	-412032(%rbp,%rax,4), %eax
	testl	%eax, %eax
	jg	.L10
	movl	-413656(%rbp), %eax
	cltq
	movl	-413632(%rbp,%rax,4), %eax
	cltq
	movl	-400016(%rbp,%rax,4), %eax
	movslq	%eax, %rdx
	movl	-412032(%rbp,%rdx,4), %edx
	addl	$1, %edx
	cltq
	movl	%edx, -412032(%rbp,%rax,4)
	addl	$1, -413648(%rbp)
	movl	-413656(%rbp), %eax
	cltq
	movl	-413632(%rbp,%rax,4), %eax
	cltq
	movq	-408032(%rbp,%rax,8), %rcx
	movabsq	$3777893186295716171, %rdx
	movq	%rcx, %rax
	mulq	%rdx
	movq	%rdx, %rax
	shrq	$11, %rax
	imulq	$10000, %rax, %rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L10:
	addl	$1, -413656(%rbp)
.L8:
	movl	-413664(%rbp), %eax
	cmpl	%eax, -413656(%rbp)
	jl	.L12
.L2:
	leaq	-413664(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-413664(%rbp), %eax
	testl	%eax, %eax
	jne	.L13
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L15
	call	__stack_chk_fail@PLT
.L15:
	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:
