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

```c
typedef long unsigned int size_t;
extern int printf (const char *__restrict __format, ...);
extern int scanf (const char *__restrict __format, ...) ;
extern int getchar (void);
extern int putchar (int __c);
int nextInt(){int f=0;char s=0;char c=getchar();while((c<48)||(57<c)){if(c==45){s=1;c=getchar();break;}c=getchar();}while((48<=c)&&(c<=57)){f=f*10+(c-48);c=getchar();}return s?-f:f;}
char nextChar(){char f=0;char s=0;char c=getchar();while((c<48)||(57<c)){if(c==45){s=1;c=getchar();break;}c=getchar();}while((48<=c)&&(c<=57)){f=f*10+(c-48);c=getchar();}return s?-f:f;}
short int nextShort(){short f=0;char s=0;char c=getchar();while((c<48)||(57<c)){if(c==45){s=1;c=getchar();break;}c=getchar();}while((48<=c)&&(c<=57)){f=f*10+(c-48);c=getchar();}return s?-f:f;}
long long int nextLong(){long long int f=0;char s=0;char c=getchar();while((c<48)||(57<c)){if(c==45){s=1;c=getchar();break;}c=getchar();}while((48<=c)&&(c<=57)){f=f*10+(c-48);c=getchar();}return s?-f:f;}
void println(){putchar(10);}
void print(char *f){while(*f){putchar(*f);f++;}}
void printInt(int f){char c[10];if(!f){putchar(48);return;}if(f<0){f=-f;putchar(45);}char i=0;while(f){c[++i]=(f%10)+48;f/=10;}while(i){putchar(c[i--]);}}
void printLong(long long int f){char c[19];if(!f){putchar(48);return;}if(f<0){f=-f;putchar(45);}char i=0;while(f){c[++i]=(f%10)+48;f/=10;}while(i){putchar(c[i--]);}}
typedef int (*__compar_fn_t) (const void *, const void *);
extern void *bsearch (const void *__key, const void *__base, size_t __nmemb, size_t __size, __compar_fn_t __compar)__attribute__ ((__nonnull__ (1, 2, 5))) ;
extern void qsort (void *__base, size_t __nmemb, size_t __size, __compar_fn_t __compar) __attribute__ ((__nonnull__ (1, 4)));
int compare_int(const void *a, const void *b){return *(int*)a - *(int*)b;}
int compare_char(const void *a, const void *b){return *(char*)a - *(char*)b;}
int compare_short(const void *a, const void *b){return *(short*)a - *(short*)b;}
int compare_long(const void *a, const void *b){if(*(long long int*)a - *(long long int*)b < 0){return -1;}else if(*(long long int*)a - *(long long int*)b > 0){return 1;}else{return 0;}}
short n, i;
char l[200];
int ans;
int main(){
 n = nextShort()*2;
 for(i=0; i<n; i++){
  l[i] = nextChar();
 }
 qsort(l, n, sizeof(char), compare_char);
 for(i=0; i<n; i+=2){
  ans += l[i];
 }
 printInt(ans);
 println();
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	nextInt
	.type	nextInt, @function
nextInt:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	movl	$0, -4(%rbp)
	movb	$0, -6(%rbp)
	call	getchar@PLT
	movb	%al, -5(%rbp)
	jmp	.L2
.L5:
	cmpb	$45, -5(%rbp)
	jne	.L3
	movb	$1, -6(%rbp)
	call	getchar@PLT
	movb	%al, -5(%rbp)
	jmp	.L4
.L3:
	call	getchar@PLT
	movb	%al, -5(%rbp)
.L2:
	cmpb	$47, -5(%rbp)
	jle	.L5
	cmpb	$57, -5(%rbp)
	jg	.L5
.L4:
	jmp	.L6
.L8:
	movl	-4(%rbp), %edx
	movl	%edx, %eax
	sall	$2, %eax
	addl	%edx, %eax
	addl	%eax, %eax
	movl	%eax, %edx
	movsbl	-5(%rbp), %eax
	subl	$48, %eax
	addl	%edx, %eax
	movl	%eax, -4(%rbp)
	call	getchar@PLT
	movb	%al, -5(%rbp)
.L6:
	cmpb	$47, -5(%rbp)
	jle	.L7
	cmpb	$57, -5(%rbp)
	jle	.L8
.L7:
	cmpb	$0, -6(%rbp)
	je	.L9
	movl	-4(%rbp), %eax
	negl	%eax
	jmp	.L11
.L9:
	movl	-4(%rbp), %eax
.L11:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	nextInt, .-nextInt
	.globl	nextChar
	.type	nextChar, @function
nextChar:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	movb	$0, -3(%rbp)
	movb	$0, -2(%rbp)
	call	getchar@PLT
	movb	%al, -1(%rbp)
	jmp	.L13
.L16:
	cmpb	$45, -1(%rbp)
	jne	.L14
	movb	$1, -2(%rbp)
	call	getchar@PLT
	movb	%al, -1(%rbp)
	jmp	.L15
.L14:
	call	getchar@PLT
	movb	%al, -1(%rbp)
.L13:
	cmpb	$47, -1(%rbp)
	jle	.L16
	cmpb	$57, -1(%rbp)
	jg	.L16
.L15:
	jmp	.L17
.L19:
	movzbl	-3(%rbp), %edx
	movl	%edx, %eax
	sall	$2, %eax
	addl	%edx, %eax
	addl	%eax, %eax
	movl	%eax, %edx
	movzbl	-1(%rbp), %eax
	addl	%edx, %eax
	subl	$48, %eax
	movb	%al, -3(%rbp)
	call	getchar@PLT
	movb	%al, -1(%rbp)
.L17:
	cmpb	$47, -1(%rbp)
	jle	.L18
	cmpb	$57, -1(%rbp)
	jle	.L19
.L18:
	cmpb	$0, -2(%rbp)
	je	.L20
	movzbl	-3(%rbp), %eax
	negl	%eax
	jmp	.L22
.L20:
	movzbl	-3(%rbp), %eax
.L22:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	nextChar, .-nextChar
	.globl	nextShort
	.type	nextShort, @function
nextShort:
.LFB2:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	movw	$0, -2(%rbp)
	movb	$0, -4(%rbp)
	call	getchar@PLT
	movb	%al, -3(%rbp)
	jmp	.L24
.L27:
	cmpb	$45, -3(%rbp)
	jne	.L25
	movb	$1, -4(%rbp)
	call	getchar@PLT
	movb	%al, -3(%rbp)
	jmp	.L26
.L25:
	call	getchar@PLT
	movb	%al, -3(%rbp)
.L24:
	cmpb	$47, -3(%rbp)
	jle	.L27
	cmpb	$57, -3(%rbp)
	jg	.L27
.L26:
	jmp	.L28
.L30:
	movzwl	-2(%rbp), %edx
	movl	%edx, %eax
	sall	$2, %eax
	addl	%edx, %eax
	addl	%eax, %eax
	movl	%eax, %edx
	movsbw	-3(%rbp), %ax
	addl	%edx, %eax
	subl	$48, %eax
	movw	%ax, -2(%rbp)
	call	getchar@PLT
	movb	%al, -3(%rbp)
.L28:
	cmpb	$47, -3(%rbp)
	jle	.L29
	cmpb	$57, -3(%rbp)
	jle	.L30
.L29:
	cmpb	$0, -4(%rbp)
	je	.L31
	movzwl	-2(%rbp), %eax
	negl	%eax
	jmp	.L33
.L31:
	movzwl	-2(%rbp), %eax
.L33:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	nextShort, .-nextShort
	.globl	nextLong
	.type	nextLong, @function
nextLong:
.LFB3:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	movq	$0, -8(%rbp)
	movb	$0, -10(%rbp)
	call	getchar@PLT
	movb	%al, -9(%rbp)
	jmp	.L35
.L38:
	cmpb	$45, -9(%rbp)
	jne	.L36
	movb	$1, -10(%rbp)
	call	getchar@PLT
	movb	%al, -9(%rbp)
	jmp	.L37
.L36:
	call	getchar@PLT
	movb	%al, -9(%rbp)
.L35:
	cmpb	$47, -9(%rbp)
	jle	.L38
	cmpb	$57, -9(%rbp)
	jg	.L38
.L37:
	jmp	.L39
.L41:
	movq	-8(%rbp), %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	movq	%rax, %rdx
	movsbl	-9(%rbp), %eax
	subl	$48, %eax
	cltq
	addq	%rdx, %rax
	movq	%rax, -8(%rbp)
	call	getchar@PLT
	movb	%al, -9(%rbp)
.L39:
	cmpb	$47, -9(%rbp)
	jle	.L40
	cmpb	$57, -9(%rbp)
	jle	.L41
.L40:
	cmpb	$0, -10(%rbp)
	je	.L42
	movq	-8(%rbp), %rax
	negq	%rax
	jmp	.L44
.L42:
	movq	-8(%rbp), %rax
.L44:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	nextLong, .-nextLong
	.globl	println
	.type	println, @function
println:
.LFB4:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	$10, %edi
	call	putchar@PLT
	nop
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE4:
	.size	println, .-println
	.globl	print
	.type	print, @function
print:
.LFB5:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	movq	%rdi, -8(%rbp)
	jmp	.L47
.L48:
	movq	-8(%rbp), %rax
	movzbl	(%rax), %eax
	movsbl	%al, %eax
	movl	%eax, %edi
	call	putchar@PLT
	addq	$1, -8(%rbp)
.L47:
	movq	-8(%rbp), %rax
	movzbl	(%rax), %eax
	testb	%al, %al
	jne	.L48
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE5:
	.size	print, .-print
	.globl	printInt
	.type	printInt, @function
printInt:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$48, %rsp
	movl	%edi, -36(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	cmpl	$0, -36(%rbp)
	jne	.L50
	movl	$48, %edi
	call	putchar@PLT
	jmp	.L49
.L50:
	cmpl	$0, -36(%rbp)
	jns	.L52
	negl	-36(%rbp)
	movl	$45, %edi
	call	putchar@PLT
.L52:
	movb	$0, -19(%rbp)
	jmp	.L53
.L54:
	movl	-36(%rbp), %edx
	movslq	%edx, %rax
	imulq	$1717986919, %rax, %rax
	shrq	$32, %rax
	sarl	$2, %eax
	movl	%edx, %esi
	sarl	$31, %esi
	subl	%esi, %eax
	movl	%eax, %ecx
	movl	%ecx, %eax
	sall	$2, %eax
	addl	%ecx, %eax
	addl	%eax, %eax
	movl	%edx, %ecx
	subl	%eax, %ecx
	movl	%ecx, %eax
	leal	48(%rax), %edx
	movzbl	-19(%rbp), %eax
	addl	$1, %eax
	movb	%al, -19(%rbp)
	movsbl	-19(%rbp), %eax
	cltq
	movb	%dl, -18(%rbp,%rax)
	movl	-36(%rbp), %eax
	movslq	%eax, %rdx
	imulq	$1717986919, %rdx, %rdx
	shrq	$32, %rdx
	sarl	$2, %edx
	sarl	$31, %eax
	movl	%eax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	movl	%eax, -36(%rbp)
.L53:
	cmpl	$0, -36(%rbp)
	jne	.L54
	jmp	.L55
.L56:
	movzbl	-19(%rbp), %eax
	movl	%eax, %edx
	subl	$1, %edx
	movb	%dl, -19(%rbp)
	movsbl	%al, %eax
	cltq
	movzbl	-18(%rbp,%rax), %eax
	movsbl	%al, %eax
	movl	%eax, %edi
	call	putchar@PLT
.L55:
	cmpb	$0, -19(%rbp)
	jne	.L56
.L49:
	movq	-8(%rbp), %rax
	subq	%fs:40, %rax
	je	.L57
	call	__stack_chk_fail@PLT
.L57:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	printInt, .-printInt
	.globl	printLong
	.type	printLong, @function
printLong:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$64, %rsp
	movq	%rdi, -56(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	cmpq	$0, -56(%rbp)
	jne	.L59
	movl	$48, %edi
	call	putchar@PLT
	jmp	.L58
.L59:
	cmpq	$0, -56(%rbp)
	jns	.L61
	negq	-56(%rbp)
	movl	$45, %edi
	call	putchar@PLT
.L61:
	movb	$0, -33(%rbp)
	jmp	.L62
.L63:
	movq	-56(%rbp), %rcx
	movabsq	$7378697629483820647, %rdx
	movq	%rcx, %rax
	imulq	%rdx
	movq	%rdx, %rax
	sarq	$2, %rax
	movq	%rcx, %rsi
	sarq	$63, %rsi
	subq	%rsi, %rax
	movq	%rax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	subq	%rax, %rcx
	movq	%rcx, %rdx
	movl	%edx, %eax
	leal	48(%rax), %edx
	movzbl	-33(%rbp), %eax
	addl	$1, %eax
	movb	%al, -33(%rbp)
	movsbl	-33(%rbp), %eax
	cltq
	movb	%dl, -32(%rbp,%rax)
	movq	-56(%rbp), %rcx
	movabsq	$7378697629483820647, %rdx
	movq	%rcx, %rax
	imulq	%rdx
	movq	%rdx, %rax
	sarq	$2, %rax
	sarq	$63, %rcx
	movq	%rcx, %rdx
	subq	%rdx, %rax
	movq	%rax, -56(%rbp)
.L62:
	cmpq	$0, -56(%rbp)
	jne	.L63
	jmp	.L64
.L65:
	movzbl	-33(%rbp), %eax
	movl	%eax, %edx
	subl	$1, %edx
	movb	%dl, -33(%rbp)
	movsbl	%al, %eax
	cltq
	movzbl	-32(%rbp,%rax), %eax
	movsbl	%al, %eax
	movl	%eax, %edi
	call	putchar@PLT
.L64:
	cmpb	$0, -33(%rbp)
	jne	.L65
.L58:
	movq	-8(%rbp), %rax
	subq	%fs:40, %rax
	je	.L66
	call	__stack_chk_fail@PLT
.L66:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	printLong, .-printLong
	.globl	compare_int
	.type	compare_int, @function
compare_int:
.LFB8:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -8(%rbp)
	movq	%rsi, -16(%rbp)
	movq	-8(%rbp), %rax
	movl	(%rax), %edx
	movq	-16(%rbp), %rax
	movl	(%rax), %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	compare_int, .-compare_int
	.globl	compare_char
	.type	compare_char, @function
compare_char:
.LFB9:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -8(%rbp)
	movq	%rsi, -16(%rbp)
	movq	-8(%rbp), %rax
	movzbl	(%rax), %eax
	movsbl	%al, %edx
	movq	-16(%rbp), %rax
	movzbl	(%rax), %eax
	movsbl	%al, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	compare_char, .-compare_char
	.globl	compare_short
	.type	compare_short, @function
compare_short:
.LFB10:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -8(%rbp)
	movq	%rsi, -16(%rbp)
	movq	-8(%rbp), %rax
	movzwl	(%rax), %eax
	movswl	%ax, %edx
	movq	-16(%rbp), %rax
	movzwl	(%rax), %eax
	movswl	%ax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	compare_short, .-compare_short
	.globl	compare_long
	.type	compare_long, @function
compare_long:
.LFB11:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -8(%rbp)
	movq	%rsi, -16(%rbp)
	movq	-8(%rbp), %rax
	movq	(%rax), %rdx
	movq	-16(%rbp), %rax
	movq	(%rax), %rcx
	movq	%rdx, %rax
	subq	%rcx, %rax
	testq	%rax, %rax
	jns	.L74
	movl	$-1, %eax
	jmp	.L75
.L74:
	movq	-8(%rbp), %rax
	movq	(%rax), %rdx
	movq	-16(%rbp), %rax
	movq	(%rax), %rcx
	movq	%rdx, %rax
	subq	%rcx, %rax
	testq	%rax, %rax
	jle	.L76
	movl	$1, %eax
	jmp	.L75
.L76:
	movl	$0, %eax
.L75:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	compare_long, .-compare_long
	.globl	n
	.bss
	.align 2
	.type	n, @object
	.size	n, 2
n:
	.zero	2
	.globl	i
	.align 2
	.type	i, @object
	.size	i, 2
i:
	.zero	2
	.globl	l
	.align 32
	.type	l, @object
	.size	l, 200
l:
	.zero	200
	.globl	ans
	.align 4
	.type	ans, @object
	.size	ans, 4
ans:
	.zero	4
	.text
	.globl	main
	.type	main, @function
main:
.LFB12:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%rbx
	subq	$8, %rsp
	.cfi_offset 3, -24
	movl	$0, %eax
	call	nextShort
	addl	%eax, %eax
	movw	%ax, n(%rip)
	movw	$0, i(%rip)
	jmp	.L78
.L79:
	movzwl	i(%rip), %eax
	movswl	%ax, %ebx
	movl	$0, %eax
	call	nextChar
	movslq	%ebx, %rdx
	leaq	l(%rip), %rcx
	movb	%al, (%rdx,%rcx)
	movzwl	i(%rip), %eax
	addl	$1, %eax
	movw	%ax, i(%rip)
.L78:
	movzwl	i(%rip), %edx
	movzwl	n(%rip), %eax
	cmpw	%ax, %dx
	jl	.L79
	movzwl	n(%rip), %eax
	movswq	%ax, %rax
	leaq	compare_char(%rip), %rdx
	movq	%rdx, %rcx
	movl	$1, %edx
	movq	%rax, %rsi
	leaq	l(%rip), %rax
	movq	%rax, %rdi
	call	qsort@PLT
	movw	$0, i(%rip)
	jmp	.L80
.L81:
	movzwl	i(%rip), %eax
	cwtl
	cltq
	leaq	l(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	movsbl	%al, %edx
	movl	ans(%rip), %eax
	addl	%edx, %eax
	movl	%eax, ans(%rip)
	movzwl	i(%rip), %eax
	addl	$2, %eax
	movw	%ax, i(%rip)
.L80:
	movzwl	i(%rip), %edx
	movzwl	n(%rip), %eax
	cmpw	%ax, %dx
	jl	.L81
	movl	ans(%rip), %eax
	movl	%eax, %edi
	call	printInt
	movl	$0, %eax
	call	println
	movl	$0, %eax
	movq	-8(%rbp), %rbx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.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
	.p2align 4
	.globl	compare_char
	.type	compare_char, @function
compare_char:
.LFB9:
	.cfi_startproc
	endbr64
	movsbl	(%rdi), %eax
	movsbl	(%rsi), %edx
	subl	%edx, %eax
	ret
	.cfi_endproc
.LFE9:
	.size	compare_char, .-compare_char
	.p2align 4
	.globl	nextInt
	.type	nextInt, @function
nextInt:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	subq	$8, %rsp
	.cfi_def_cfa_offset 32
	call	getchar@PLT
	leal	-48(%rax), %ecx
	cmpb	$9, %cl
	ja	.L18
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L5:
	call	getchar@PLT
	leal	-48(%rax), %ecx
	movl	%eax, %edx
	cmpb	$9, %cl
	jbe	.L19
.L18:
	cmpb	$45, %al
	jne	.L5
	call	getchar@PLT
	movl	$1, %ebx
	xorl	%r12d, %r12d
	movl	%eax, %edx
	subl	$48, %eax
	cmpb	$9, %al
	jbe	.L4
	jmp	.L3
.L11:
	movl	%eax, %edx
	.p2align 4,,10
	.p2align 3
.L19:
	xorl	%ebx, %ebx
.L4:
	xorl	%r12d, %r12d
	.p2align 4,,10
	.p2align 3
.L9:
	subl	$48, %edx
	leal	(%r12,%r12,4), %eax
	movsbl	%dl, %edx
	leal	(%rdx,%rax,2), %r12d
	call	getchar@PLT
	movl	%eax, %edx
	subl	$48, %eax
	cmpb	$9, %al
	jbe	.L9
	movl	%r12d, %eax
	negl	%eax
	testb	%bl, %bl
	cmovne	%eax, %r12d
.L3:
	addq	$8, %rsp
	.cfi_def_cfa_offset 24
	movl	%r12d, %eax
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	nextInt, .-nextInt
	.p2align 4
	.globl	nextChar
	.type	nextChar, @function
nextChar:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	subq	$8, %rsp
	.cfi_def_cfa_offset 32
	call	getchar@PLT
	leal	-48(%rax), %ecx
	cmpb	$9, %cl
	ja	.L35
	jmp	.L28
	.p2align 4,,10
	.p2align 3
.L22:
	call	getchar@PLT
	leal	-48(%rax), %ecx
	movl	%eax, %edx
	cmpb	$9, %cl
	jbe	.L36
.L35:
	cmpb	$45, %al
	jne	.L22
	call	getchar@PLT
	movl	$1, %ebx
	xorl	%r12d, %r12d
	movl	%eax, %edx
	subl	$48, %eax
	cmpb	$9, %al
	jbe	.L21
	jmp	.L20
.L28:
	movl	%eax, %edx
	.p2align 4,,10
	.p2align 3
.L36:
	xorl	%ebx, %ebx
.L21:
	xorl	%r12d, %r12d
	.p2align 4,,10
	.p2align 3
.L26:
	leal	(%r12,%r12,4), %r12d
	leal	-48(%rdx,%r12,2), %r12d
	call	getchar@PLT
	movl	%eax, %edx
	subl	$48, %eax
	cmpb	$9, %al
	jbe	.L26
	movl	%r12d, %eax
	negl	%eax
	testb	%bl, %bl
	cmovne	%eax, %r12d
.L20:
	addq	$8, %rsp
	.cfi_def_cfa_offset 24
	movl	%r12d, %eax
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE1:
	.size	nextChar, .-nextChar
	.p2align 4
	.globl	nextShort
	.type	nextShort, @function
nextShort:
.LFB2:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	subq	$8, %rsp
	.cfi_def_cfa_offset 32
	call	getchar@PLT
	leal	-48(%rax), %ecx
	cmpb	$9, %cl
	ja	.L52
	jmp	.L45
	.p2align 4,,10
	.p2align 3
.L39:
	call	getchar@PLT
	leal	-48(%rax), %ecx
	movsbw	%al, %dx
	cmpb	$9, %cl
	jbe	.L53
.L52:
	cmpb	$45, %al
	jne	.L39
	call	getchar@PLT
	movl	$1, %ebx
	xorl	%r12d, %r12d
	movsbw	%al, %dx
	subl	$48, %eax
	cmpb	$9, %al
	jbe	.L38
	jmp	.L37
.L45:
	movsbw	%al, %dx
	.p2align 4,,10
	.p2align 3
.L53:
	xorl	%ebx, %ebx
.L38:
	xorl	%r12d, %r12d
	.p2align 4,,10
	.p2align 3
.L43:
	leal	(%r12,%r12,4), %r12d
	leal	-48(%rdx,%r12,2), %r12d
	call	getchar@PLT
	movsbw	%al, %dx
	subl	$48, %eax
	cmpb	$9, %al
	jbe	.L43
	movl	%r12d, %eax
	negl	%eax
	testb	%bl, %bl
	cmovne	%eax, %r12d
.L37:
	addq	$8, %rsp
	.cfi_def_cfa_offset 24
	movl	%r12d, %eax
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE2:
	.size	nextShort, .-nextShort
	.p2align 4
	.globl	nextLong
	.type	nextLong, @function
nextLong:
.LFB3:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	subq	$8, %rsp
	.cfi_def_cfa_offset 32
	call	getchar@PLT
	leal	-48(%rax), %ecx
	cmpb	$9, %cl
	ja	.L69
	jmp	.L62
	.p2align 4,,10
	.p2align 3
.L56:
	call	getchar@PLT
	leal	-48(%rax), %ecx
	movl	%eax, %edx
	cmpb	$9, %cl
	jbe	.L70
.L69:
	cmpb	$45, %al
	jne	.L56
	call	getchar@PLT
	movl	$1, %ebx
	xorl	%r12d, %r12d
	movl	%eax, %edx
	subl	$48, %eax
	cmpb	$9, %al
	jbe	.L55
	jmp	.L54
.L62:
	movl	%eax, %edx
	.p2align 4,,10
	.p2align 3
.L70:
	xorl	%ebx, %ebx
.L55:
	xorl	%r12d, %r12d
	.p2align 4,,10
	.p2align 3
.L60:
	subl	$48, %edx
	leaq	(%r12,%r12,4), %rax
	movsbq	%dl, %rdx
	leaq	(%rdx,%rax,2), %r12
	call	getchar@PLT
	movl	%eax, %edx
	subl	$48, %eax
	cmpb	$9, %al
	jbe	.L60
	movq	%r12, %rax
	negq	%rax
	testb	%bl, %bl
	cmovne	%rax, %r12
.L54:
	addq	$8, %rsp
	.cfi_def_cfa_offset 24
	movq	%r12, %rax
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE3:
	.size	nextLong, .-nextLong
	.p2align 4
	.globl	println
	.type	println, @function
println:
.LFB4:
	.cfi_startproc
	endbr64
	movl	$10, %edi
	jmp	putchar@PLT
	.cfi_endproc
.LFE4:
	.size	println, .-println
	.p2align 4
	.globl	print
	.type	print, @function
print:
.LFB5:
	.cfi_startproc
	endbr64
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	movq	%rdi, %rbx
	movsbl	(%rdi), %edi
	testb	%dil, %dil
	je	.L72
	.p2align 4,,10
	.p2align 3
.L74:
	call	putchar@PLT
	movsbl	1(%rbx), %edi
	addq	$1, %rbx
	testb	%dil, %dil
	jne	.L74
.L72:
	popq	%rbx
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE5:
	.size	print, .-print
	.p2align 4
	.globl	printInt
	.type	printInt, @function
printInt:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	subq	$40, %rsp
	.cfi_def_cfa_offset 64
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	testl	%edi, %edi
	je	.L97
	movl	%edi, %ebp
	js	.L98
.L83:
	xorl	%ebx, %ebx
	movl	$3435973837, %ecx
	.p2align 4,,10
	.p2align 3
.L84:
	movl	%ebp, %eax
	addl	$1, %ebx
	imulq	%rcx, %rax
	shrq	$35, %rax
	leal	(%rax,%rax,4), %edx
	addl	%edx, %edx
	subl	%edx, %ebp
	movsbq	%bl, %rdx
	leal	48(%rbp), %edi
	movl	%eax, %ebp
	movb	%dil, 14(%rsp,%rdx)
	testl	%eax, %eax
	jne	.L84
	testb	%bl, %bl
	jne	.L86
	jmp	.L80
	.p2align 4,,10
	.p2align 3
.L99:
	movsbq	%bl, %rax
	movzbl	14(%rsp,%rax), %edi
.L86:
	subl	$1, %ebx
	movsbl	%dil, %edi
	call	putchar@PLT
	testb	%bl, %bl
	jne	.L99
.L80:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L96
	addq	$40, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L98:
	.cfi_restore_state
	movl	$45, %edi
	negl	%ebp
	call	putchar@PLT
	jmp	.L83
	.p2align 4,,10
	.p2align 3
.L97:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L96
	addq	$40, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	movl	$48, %edi
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	jmp	putchar@PLT
.L96:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE6:
	.size	printInt, .-printInt
	.p2align 4
	.globl	printLong
	.type	printLong, @function
printLong:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	subq	$40, %rsp
	.cfi_def_cfa_offset 64
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	testq	%rdi, %rdi
	je	.L117
	movq	%rdi, %rbp
	js	.L118
.L103:
	movabsq	$-3689348814741910323, %rcx
	xorl	%ebx, %ebx
	.p2align 4,,10
	.p2align 3
.L104:
	movq	%rbp, %rax
	addl	$1, %ebx
	mulq	%rcx
	shrq	$3, %rdx
	leaq	(%rdx,%rdx,4), %rax
	addq	%rax, %rax
	subq	%rax, %rbp
	movsbq	%bl, %rax
	leal	48(%rbp), %edi
	movq	%rdx, %rbp
	movb	%dil, (%rsp,%rax)
	testq	%rdx, %rdx
	jne	.L104
	testb	%bl, %bl
	jne	.L106
	jmp	.L100
	.p2align 4,,10
	.p2align 3
.L119:
	movsbq	%bl, %rax
	movzbl	(%rsp,%rax), %edi
.L106:
	subl	$1, %ebx
	movsbl	%dil, %edi
	call	putchar@PLT
	testb	%bl, %bl
	jne	.L119
.L100:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L116
	addq	$40, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L118:
	.cfi_restore_state
	movl	$45, %edi
	negq	%rbp
	call	putchar@PLT
	jmp	.L103
	.p2align 4,,10
	.p2align 3
.L117:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L116
	addq	$40, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	movl	$48, %edi
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	jmp	putchar@PLT
.L116:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE7:
	.size	printLong, .-printLong
	.p2align 4
	.globl	compare_int
	.type	compare_int, @function
compare_int:
.LFB8:
	.cfi_startproc
	endbr64
	movl	(%rdi), %eax
	subl	(%rsi), %eax
	ret
	.cfi_endproc
.LFE8:
	.size	compare_int, .-compare_int
	.p2align 4
	.globl	compare_short
	.type	compare_short, @function
compare_short:
.LFB10:
	.cfi_startproc
	endbr64
	movswl	(%rdi), %eax
	movswl	(%rsi), %edx
	subl	%edx, %eax
	ret
	.cfi_endproc
.LFE10:
	.size	compare_short, .-compare_short
	.p2align 4
	.globl	compare_long
	.type	compare_long, @function
compare_long:
.LFB11:
	.cfi_startproc
	endbr64
	movq	(%rsi), %rdx
	movl	$-1, %eax
	cmpq	%rdx, (%rdi)
	js	.L122
	setne	%al
	movzbl	%al, %eax
.L122:
	ret
	.cfi_endproc
.LFE11:
	.size	compare_long, .-compare_long
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB12:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	xorl	%eax, %eax
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	leaq	l(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	call	nextShort
	xorl	%edx, %edx
	addl	%eax, %eax
	movw	%dx, i(%rip)
	movw	%ax, n(%rip)
	testw	%ax, %ax
	jle	.L126
	xorl	%ebx, %ebx
	.p2align 4,,10
	.p2align 3
.L134:
	movswq	%bx, %rbx
	jmp	.L151
	.p2align 4,,10
	.p2align 3
.L153:
	cmpb	$45, %al
	je	.L152
.L151:
	call	getchar@PLT
	leal	-48(%rax), %ecx
	movl	%eax, %edx
	cmpb	$9, %cl
	ja	.L153
	xorl	%r12d, %r12d
.L127:
	xorl	%r13d, %r13d
	.p2align 4,,10
	.p2align 3
.L132:
	leal	0(%r13,%r13,4), %r13d
	leal	-48(%rdx,%r13,2), %r14d
	call	getchar@PLT
	movl	%r14d, %r13d
	movl	%eax, %edx
	subl	$48, %eax
	cmpb	$9, %al
	jbe	.L132
	testb	%r12b, %r12b
	jne	.L129
.L133:
	movzwl	i(%rip), %eax
	movb	%r13b, 0(%rbp,%rbx)
	leal	1(%rax), %ebx
	movzwl	n(%rip), %eax
	movw	%bx, i(%rip)
	cmpw	%ax, %bx
	jl	.L134
.L126:
	movswq	%ax, %rsi
	leaq	compare_char(%rip), %rcx
	movq	%rbp, %rdi
	movl	$1, %edx
	call	qsort@PLT
	movzwl	n(%rip), %ecx
	xorl	%eax, %eax
	movl	ans(%rip), %edi
	movw	%ax, i(%rip)
	xorl	%eax, %eax
	testw	%cx, %cx
	jle	.L136
	.p2align 4,,10
	.p2align 3
.L137:
	movswq	%ax, %rdx
	addl	$2, %eax
	movsbl	0(%rbp,%rdx), %edx
	addl	%edx, %edi
	cmpw	%ax, %cx
	jg	.L137
	movl	%edi, ans(%rip)
	movw	%ax, i(%rip)
.L136:
	call	printInt
	movl	$10, %edi
	call	putchar@PLT
	popq	%rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xorl	%eax, %eax
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L152:
	.cfi_restore_state
	call	getchar@PLT
	movl	$1, %r12d
	xorl	%r14d, %r14d
	movl	%eax, %edx
	subl	$48, %eax
	cmpb	$9, %al
	jbe	.L127
	.p2align 4,,10
	.p2align 3
.L129:
	negl	%r14d
	movl	%r14d, %r13d
	jmp	.L133
	.cfi_endproc
.LFE12:
	.size	main, .-main
	.globl	ans
	.bss
	.align 4
	.type	ans, @object
	.size	ans, 4
ans:
	.zero	4
	.globl	l
	.align 32
	.type	l, @object
	.size	l, 200
l:
	.zero	200
	.globl	i
	.align 2
	.type	i, @object
	.size	i, 2
i:
	.zero	2
	.globl	n
	.align 2
	.type	n, @object
	.size	n, 2
n:
	.zero	2
	.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
	.p2align 4
	.globl	compare_char
	.type	compare_char, @function
compare_char:
.LFB9:
	.cfi_startproc
	endbr64
	movsbl	(%rdi), %eax
	movsbl	(%rsi), %edx
	subl	%edx, %eax
	ret
	.cfi_endproc
.LFE9:
	.size	compare_char, .-compare_char
	.p2align 4
	.globl	nextInt
	.type	nextInt, @function
nextInt:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	subq	$8, %rsp
	.cfi_def_cfa_offset 32
	call	getchar@PLT
	leal	-48(%rax), %ecx
	cmpb	$9, %cl
	ja	.L18
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L5:
	call	getchar@PLT
	leal	-48(%rax), %ecx
	movl	%eax, %edx
	cmpb	$9, %cl
	jbe	.L19
.L18:
	cmpb	$45, %al
	jne	.L5
	call	getchar@PLT
	movl	$1, %ebx
	xorl	%r12d, %r12d
	movl	%eax, %edx
	subl	$48, %eax
	cmpb	$9, %al
	jbe	.L4
	jmp	.L3
.L11:
	movl	%eax, %edx
	.p2align 4,,10
	.p2align 3
.L19:
	xorl	%ebx, %ebx
.L4:
	xorl	%r12d, %r12d
	.p2align 4,,10
	.p2align 3
.L9:
	subl	$48, %edx
	leal	(%r12,%r12,4), %eax
	movsbl	%dl, %edx
	leal	(%rdx,%rax,2), %r12d
	call	getchar@PLT
	movl	%eax, %edx
	subl	$48, %eax
	cmpb	$9, %al
	jbe	.L9
	movl	%r12d, %eax
	negl	%eax
	testb	%bl, %bl
	cmovne	%eax, %r12d
.L3:
	addq	$8, %rsp
	.cfi_def_cfa_offset 24
	movl	%r12d, %eax
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	nextInt, .-nextInt
	.p2align 4
	.globl	nextChar
	.type	nextChar, @function
nextChar:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	subq	$8, %rsp
	.cfi_def_cfa_offset 32
	call	getchar@PLT
	leal	-48(%rax), %ecx
	cmpb	$9, %cl
	ja	.L35
	jmp	.L28
	.p2align 4,,10
	.p2align 3
.L22:
	call	getchar@PLT
	leal	-48(%rax), %ecx
	movl	%eax, %edx
	cmpb	$9, %cl
	jbe	.L36
.L35:
	cmpb	$45, %al
	jne	.L22
	call	getchar@PLT
	movl	$1, %ebx
	xorl	%r12d, %r12d
	movl	%eax, %edx
	subl	$48, %eax
	cmpb	$9, %al
	jbe	.L21
	jmp	.L20
.L28:
	movl	%eax, %edx
	.p2align 4,,10
	.p2align 3
.L36:
	xorl	%ebx, %ebx
.L21:
	xorl	%r12d, %r12d
	.p2align 4,,10
	.p2align 3
.L26:
	leal	(%r12,%r12,4), %r12d
	leal	-48(%rdx,%r12,2), %r12d
	call	getchar@PLT
	movl	%eax, %edx
	subl	$48, %eax
	cmpb	$9, %al
	jbe	.L26
	movl	%r12d, %eax
	negl	%eax
	testb	%bl, %bl
	cmovne	%eax, %r12d
.L20:
	addq	$8, %rsp
	.cfi_def_cfa_offset 24
	movl	%r12d, %eax
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE1:
	.size	nextChar, .-nextChar
	.p2align 4
	.globl	nextShort
	.type	nextShort, @function
nextShort:
.LFB2:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	subq	$8, %rsp
	.cfi_def_cfa_offset 32
	call	getchar@PLT
	leal	-48(%rax), %ecx
	cmpb	$9, %cl
	ja	.L52
	jmp	.L45
	.p2align 4,,10
	.p2align 3
.L39:
	call	getchar@PLT
	leal	-48(%rax), %ecx
	movsbw	%al, %dx
	cmpb	$9, %cl
	jbe	.L53
.L52:
	cmpb	$45, %al
	jne	.L39
	call	getchar@PLT
	movl	$1, %ebx
	xorl	%r12d, %r12d
	movsbw	%al, %dx
	subl	$48, %eax
	cmpb	$9, %al
	jbe	.L38
	jmp	.L37
.L45:
	movsbw	%al, %dx
	.p2align 4,,10
	.p2align 3
.L53:
	xorl	%ebx, %ebx
.L38:
	xorl	%r12d, %r12d
	.p2align 4,,10
	.p2align 3
.L43:
	leal	(%r12,%r12,4), %r12d
	leal	-48(%rdx,%r12,2), %r12d
	call	getchar@PLT
	movsbw	%al, %dx
	subl	$48, %eax
	cmpb	$9, %al
	jbe	.L43
	movl	%r12d, %eax
	negl	%eax
	testb	%bl, %bl
	cmovne	%eax, %r12d
.L37:
	addq	$8, %rsp
	.cfi_def_cfa_offset 24
	movl	%r12d, %eax
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE2:
	.size	nextShort, .-nextShort
	.p2align 4
	.globl	nextLong
	.type	nextLong, @function
nextLong:
.LFB3:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	subq	$8, %rsp
	.cfi_def_cfa_offset 32
	call	getchar@PLT
	leal	-48(%rax), %ecx
	cmpb	$9, %cl
	ja	.L69
	jmp	.L62
	.p2align 4,,10
	.p2align 3
.L56:
	call	getchar@PLT
	leal	-48(%rax), %ecx
	movl	%eax, %edx
	cmpb	$9, %cl
	jbe	.L70
.L69:
	cmpb	$45, %al
	jne	.L56
	call	getchar@PLT
	movl	$1, %ebx
	xorl	%r12d, %r12d
	movl	%eax, %edx
	subl	$48, %eax
	cmpb	$9, %al
	jbe	.L55
	jmp	.L54
.L62:
	movl	%eax, %edx
	.p2align 4,,10
	.p2align 3
.L70:
	xorl	%ebx, %ebx
.L55:
	xorl	%r12d, %r12d
	.p2align 4,,10
	.p2align 3
.L60:
	subl	$48, %edx
	leaq	(%r12,%r12,4), %rax
	movsbq	%dl, %rdx
	leaq	(%rdx,%rax,2), %r12
	call	getchar@PLT
	movl	%eax, %edx
	subl	$48, %eax
	cmpb	$9, %al
	jbe	.L60
	movq	%r12, %rax
	negq	%rax
	testb	%bl, %bl
	cmovne	%rax, %r12
.L54:
	addq	$8, %rsp
	.cfi_def_cfa_offset 24
	movq	%r12, %rax
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE3:
	.size	nextLong, .-nextLong
	.p2align 4
	.globl	println
	.type	println, @function
println:
.LFB4:
	.cfi_startproc
	endbr64
	movl	$10, %edi
	jmp	putchar@PLT
	.cfi_endproc
.LFE4:
	.size	println, .-println
	.p2align 4
	.globl	print
	.type	print, @function
print:
.LFB5:
	.cfi_startproc
	endbr64
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	movq	%rdi, %rbx
	movsbl	(%rdi), %edi
	testb	%dil, %dil
	je	.L72
	.p2align 4,,10
	.p2align 3
.L74:
	call	putchar@PLT
	movsbl	1(%rbx), %edi
	addq	$1, %rbx
	testb	%dil, %dil
	jne	.L74
.L72:
	popq	%rbx
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE5:
	.size	print, .-print
	.p2align 4
	.globl	printInt
	.type	printInt, @function
printInt:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	subq	$40, %rsp
	.cfi_def_cfa_offset 64
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	testl	%edi, %edi
	je	.L97
	movl	%edi, %ebp
	js	.L98
.L83:
	xorl	%ebx, %ebx
	movl	$3435973837, %ecx
	.p2align 4,,10
	.p2align 3
.L84:
	movl	%ebp, %eax
	addl	$1, %ebx
	imulq	%rcx, %rax
	shrq	$35, %rax
	leal	(%rax,%rax,4), %edx
	addl	%edx, %edx
	subl	%edx, %ebp
	movsbq	%bl, %rdx
	leal	48(%rbp), %edi
	movl	%eax, %ebp
	movb	%dil, 14(%rsp,%rdx)
	testl	%eax, %eax
	jne	.L84
	testb	%bl, %bl
	jne	.L86
	jmp	.L80
	.p2align 4,,10
	.p2align 3
.L99:
	movsbq	%bl, %rax
	movzbl	14(%rsp,%rax), %edi
.L86:
	subl	$1, %ebx
	movsbl	%dil, %edi
	call	putchar@PLT
	testb	%bl, %bl
	jne	.L99
.L80:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L96
	addq	$40, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L98:
	.cfi_restore_state
	movl	$45, %edi
	negl	%ebp
	call	putchar@PLT
	jmp	.L83
	.p2align 4,,10
	.p2align 3
.L97:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L96
	addq	$40, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	movl	$48, %edi
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	jmp	putchar@PLT
.L96:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE6:
	.size	printInt, .-printInt
	.p2align 4
	.globl	printLong
	.type	printLong, @function
printLong:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	subq	$40, %rsp
	.cfi_def_cfa_offset 64
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	testq	%rdi, %rdi
	je	.L117
	movq	%rdi, %rbp
	js	.L118
.L103:
	movabsq	$-3689348814741910323, %rcx
	xorl	%ebx, %ebx
	.p2align 4,,10
	.p2align 3
.L104:
	movq	%rbp, %rax
	addl	$1, %ebx
	mulq	%rcx
	shrq	$3, %rdx
	leaq	(%rdx,%rdx,4), %rax
	addq	%rax, %rax
	subq	%rax, %rbp
	movsbq	%bl, %rax
	leal	48(%rbp), %edi
	movq	%rdx, %rbp
	movb	%dil, (%rsp,%rax)
	testq	%rdx, %rdx
	jne	.L104
	testb	%bl, %bl
	jne	.L106
	jmp	.L100
	.p2align 4,,10
	.p2align 3
.L119:
	movsbq	%bl, %rax
	movzbl	(%rsp,%rax), %edi
.L106:
	subl	$1, %ebx
	movsbl	%dil, %edi
	call	putchar@PLT
	testb	%bl, %bl
	jne	.L119
.L100:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L116
	addq	$40, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L118:
	.cfi_restore_state
	movl	$45, %edi
	negq	%rbp
	call	putchar@PLT
	jmp	.L103
	.p2align 4,,10
	.p2align 3
.L117:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L116
	addq	$40, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	movl	$48, %edi
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	jmp	putchar@PLT
.L116:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE7:
	.size	printLong, .-printLong
	.p2align 4
	.globl	compare_int
	.type	compare_int, @function
compare_int:
.LFB8:
	.cfi_startproc
	endbr64
	movl	(%rdi), %eax
	subl	(%rsi), %eax
	ret
	.cfi_endproc
.LFE8:
	.size	compare_int, .-compare_int
	.p2align 4
	.globl	compare_short
	.type	compare_short, @function
compare_short:
.LFB10:
	.cfi_startproc
	endbr64
	movswl	(%rdi), %eax
	movswl	(%rsi), %edx
	subl	%edx, %eax
	ret
	.cfi_endproc
.LFE10:
	.size	compare_short, .-compare_short
	.p2align 4
	.globl	compare_long
	.type	compare_long, @function
compare_long:
.LFB11:
	.cfi_startproc
	endbr64
	movq	(%rsi), %rdx
	movl	$-1, %eax
	cmpq	%rdx, (%rdi)
	js	.L122
	setne	%al
	movzbl	%al, %eax
.L122:
	ret
	.cfi_endproc
.LFE11:
	.size	compare_long, .-compare_long
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB12:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	xorl	%eax, %eax
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	leaq	l(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	call	nextShort
	xorl	%edx, %edx
	addl	%eax, %eax
	movw	%dx, i(%rip)
	movw	%ax, n(%rip)
	testw	%ax, %ax
	jle	.L126
	xorl	%ebx, %ebx
	.p2align 4,,10
	.p2align 3
.L134:
	movswq	%bx, %rbx
	jmp	.L151
	.p2align 4,,10
	.p2align 3
.L153:
	cmpb	$45, %al
	je	.L152
.L151:
	call	getchar@PLT
	leal	-48(%rax), %ecx
	movl	%eax, %edx
	cmpb	$9, %cl
	ja	.L153
	xorl	%r12d, %r12d
.L127:
	xorl	%r13d, %r13d
	.p2align 4,,10
	.p2align 3
.L132:
	leal	0(%r13,%r13,4), %r13d
	leal	-48(%rdx,%r13,2), %r14d
	call	getchar@PLT
	movl	%r14d, %r13d
	movl	%eax, %edx
	subl	$48, %eax
	cmpb	$9, %al
	jbe	.L132
	testb	%r12b, %r12b
	jne	.L129
.L133:
	movzwl	i(%rip), %eax
	movb	%r13b, 0(%rbp,%rbx)
	leal	1(%rax), %ebx
	movzwl	n(%rip), %eax
	movw	%bx, i(%rip)
	cmpw	%ax, %bx
	jl	.L134
.L126:
	movswq	%ax, %rsi
	leaq	compare_char(%rip), %rcx
	movq	%rbp, %rdi
	movl	$1, %edx
	call	qsort@PLT
	movzwl	n(%rip), %ecx
	xorl	%eax, %eax
	movl	ans(%rip), %edi
	movw	%ax, i(%rip)
	xorl	%eax, %eax
	testw	%cx, %cx
	jle	.L136
	.p2align 4,,10
	.p2align 3
.L137:
	movswq	%ax, %rdx
	addl	$2, %eax
	movsbl	0(%rbp,%rdx), %edx
	addl	%edx, %edi
	cmpw	%ax, %cx
	jg	.L137
	movl	%edi, ans(%rip)
	movw	%ax, i(%rip)
.L136:
	call	printInt
	movl	$10, %edi
	call	putchar@PLT
	popq	%rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xorl	%eax, %eax
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L152:
	.cfi_restore_state
	call	getchar@PLT
	movl	$1, %r12d
	xorl	%r14d, %r14d
	movl	%eax, %edx
	subl	$48, %eax
	cmpb	$9, %al
	jbe	.L127
	.p2align 4,,10
	.p2align 3
.L129:
	negl	%r14d
	movl	%r14d, %r13d
	jmp	.L133
	.cfi_endproc
.LFE12:
	.size	main, .-main
	.globl	ans
	.bss
	.align 4
	.type	ans, @object
	.size	ans, 4
ans:
	.zero	4
	.globl	l
	.align 32
	.type	l, @object
	.size	l, 200
l:
	.zero	200
	.globl	i
	.align 2
	.type	i, @object
	.size	i, 2
i:
	.zero	2
	.globl	n
	.align 2
	.type	n, @object
	.size	n, 2
n:
	.zero	2
	.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:

typedef long unsigned int size_t;
extern int printf (const char *__restrict __format, ...);
extern int scanf (const char *__restrict __format, ...) ;
extern int getchar (void);
extern int putchar (int __c);
int nextInt(){int f=0;char s=0;char c=getchar();while((c<48)||(57<c)){if(c==45){s=1;c=getchar();break;}c=getchar();}while((48<=c)&&(c<=57)){f=f*10+(c-48);c=getchar();}return s?-f:f;}
char nextChar(){char f=0;char s=0;char c=getchar();while((c<48)||(57<c)){if(c==45){s=1;c=getchar();break;}c=getchar();}while((48<=c)&&(c<=57)){f=f*10+(c-48);c=getchar();}return s?-f:f;}
short int nextShort(){short f=0;char s=0;char c=getchar();while((c<48)||(57<c)){if(c==45){s=1;c=getchar();break;}c=getchar();}while((48<=c)&&(c<=57)){f=f*10+(c-48);c=getchar();}return s?-f:f;}
long long int nextLong(){long long int f=0;char s=0;char c=getchar();while((c<48)||(57<c)){if(c==45){s=1;c=getchar();break;}c=getchar();}while((48<=c)&&(c<=57)){f=f*10+(c-48);c=getchar();}return s?-f:f;}
void println(){putchar(10);}
void print(char *f){while(*f){putchar(*f);f++;}}
void printInt(int f){char c[10];if(!f){putchar(48);return;}if(f<0){f=-f;putchar(45);}char i=0;while(f){c[++i]=(f%10)+48;f/=10;}while(i){putchar(c[i--]);}}
void printLong(long long int f){char c[19];if(!f){putchar(48);return;}if(f<0){f=-f;putchar(45);}char i=0;while(f){c[++i]=(f%10)+48;f/=10;}while(i){putchar(c[i--]);}}
typedef int (*__compar_fn_t) (const void *, const void *);
extern void *bsearch (const void *__key, const void *__base, size_t __nmemb, size_t __size, __compar_fn_t __compar)__attribute__ ((__nonnull__ (1, 2, 5))) ;
extern void qsort (void *__base, size_t __nmemb, size_t __size, __compar_fn_t __compar) __attribute__ ((__nonnull__ (1, 4)));
int compare_int(const void *a, const void *b){return *(int*)a - *(int*)b;}
int compare_char(const void *a, const void *b){return *(char*)a - *(char*)b;}
int compare_short(const void *a, const void *b){return *(short*)a - *(short*)b;}
int compare_long(const void *a, const void *b){if(*(long long int*)a - *(long long int*)b < 0){return -1;}else if(*(long long int*)a - *(long long int*)b > 0){return 1;}else{return 0;}}
short n, i;
char l[200];
int ans;
int main(){
 n = nextShort()*2;
 for(i=0; i<n; i++){
  l[i] = nextChar();
 }
 qsort(l, n, sizeof(char), compare_char);
 for(i=0; i<n; i+=2){
  ans += l[i];
 }
 printInt(ans);
 println();
}

5
100 1 2 3 14 15 58 58 9 29
 2
1 3 1 1
 5
100 1 2 3 1 15 58 58 9 29
 2
1 2 1 2
 5
100 1 2 3 1 19 40 14 9 29
 2
1 2 0 1
 5
110 1 2 3 1 19 40 14 1 29
 5
110 1 0 3 1 19 40 14 1 29
 2
2 0 0 0
 2
2 -1 0 0

105
 2
 99
 3
 71
 1
 64
 63
 0
 -1

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

```c
typedef long unsigned int size_t;
extern int printf (const char *__restrict __format, ...);
extern int scanf (const char *__restrict __format, ...) ;
extern int getchar (void);
extern int putchar (int __c);
int nextInt(){int f=0;char s=0;char c=getchar();while((c<48)||(57<c)){if(c==45){s=1;c=getchar();break;}c=getchar();}while((48<=c)&&(c<=57)){f=f*10+(c-48);c=getchar();}return s?-f:f;}
char nextChar(){char f=0;char s=0;char c=getchar();while((c<48)||(57<c)){if(c==45){s=1;c=getchar();break;}c=getchar();}while((48<=c)&&(c<=57)){f=f*10+(c-48);c=getchar();}return s?-f:f;}
short int nextShort(){short f=0;char s=0;char c=getchar();while((c<48)||(57<c)){if(c==45){s=1;c=getchar();break;}c=getchar();}while((48<=c)&&(c<=57)){f=f*10+(c-48);c=getchar();}return s?-f:f;}
long long int nextLong(){long long int f=0;char s=0;char c=getchar();while((c<48)||(57<c)){if(c==45){s=1;c=getchar();break;}c=getchar();}while((48<=c)&&(c<=57)){f=f*10+(c-48);c=getchar();}return s?-f:f;}
void println(){putchar(10);}
void print(char *f){while(*f){putchar(*f);f++;}}
void printInt(int f){char c[10];if(!f){putchar(48);return;}if(f<0){f=-f;putchar(45);}char i=0;while(f){c[++i]=(f%10)+48;f/=10;}while(i){putchar(c[i--]);}}
void printLong(long long int f){char c[19];if(!f){putchar(48);return;}if(f<0){f=-f;putchar(45);}char i=0;while(f){c[++i]=(f%10)+48;f/=10;}while(i){putchar(c[i--]);}}
typedef int (*__compar_fn_t) (const void *, const void *);
extern void *bsearch (const void *__key, const void *__base, size_t __nmemb, size_t __size, __compar_fn_t __compar)__attribute__ ((__nonnull__ (1, 2, 5))) ;
extern void qsort (void *__base, size_t __nmemb, size_t __size, __compar_fn_t __compar) __attribute__ ((__nonnull__ (1, 4)));
int compare_int(const void *a, const void *b){return *(int*)a - *(int*)b;}
int compare_char(const void *a, const void *b){return *(char*)a - *(char*)b;}
int compare_short(const void *a, const void *b){return *(short*)a - *(short*)b;}
int compare_long(const void *a, const void *b){if(*(long long int*)a - *(long long int*)b < 0){return -1;}else if(*(long long int*)a - *(long long int*)b > 0){return 1;}else{return 0;}}
short n, i;
char l[200];
int ans;
int main(){
 n = nextShort()*2;
 for(i=0; i<n; i++){
  l[i] = nextChar();
 }
 qsort(l, n, sizeof(char), compare_char);
 for(i=0; i<n; i+=2){
  ans += l[i];
 }
 printInt(ans);
 println();
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	nextInt
	.type	nextInt, @function
nextInt:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	movl	$0, -4(%rbp)
	movb	$0, -6(%rbp)
	call	getchar@PLT
	movb	%al, -5(%rbp)
	jmp	.L2
.L5:
	cmpb	$45, -5(%rbp)
	jne	.L3
	movb	$1, -6(%rbp)
	call	getchar@PLT
	movb	%al, -5(%rbp)
	jmp	.L4
.L3:
	call	getchar@PLT
	movb	%al, -5(%rbp)
.L2:
	cmpb	$47, -5(%rbp)
	jle	.L5
	cmpb	$57, -5(%rbp)
	jg	.L5
.L4:
	jmp	.L6
.L8:
	movl	-4(%rbp), %edx
	movl	%edx, %eax
	sall	$2, %eax
	addl	%edx, %eax
	addl	%eax, %eax
	movl	%eax, %edx
	movsbl	-5(%rbp), %eax
	subl	$48, %eax
	addl	%edx, %eax
	movl	%eax, -4(%rbp)
	call	getchar@PLT
	movb	%al, -5(%rbp)
.L6:
	cmpb	$47, -5(%rbp)
	jle	.L7
	cmpb	$57, -5(%rbp)
	jle	.L8
.L7:
	cmpb	$0, -6(%rbp)
	je	.L9
	movl	-4(%rbp), %eax
	negl	%eax
	jmp	.L11
.L9:
	movl	-4(%rbp), %eax
.L11:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	nextInt, .-nextInt
	.globl	nextChar
	.type	nextChar, @function
nextChar:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	movb	$0, -3(%rbp)
	movb	$0, -2(%rbp)
	call	getchar@PLT
	movb	%al, -1(%rbp)
	jmp	.L13
.L16:
	cmpb	$45, -1(%rbp)
	jne	.L14
	movb	$1, -2(%rbp)
	call	getchar@PLT
	movb	%al, -1(%rbp)
	jmp	.L15
.L14:
	call	getchar@PLT
	movb	%al, -1(%rbp)
.L13:
	cmpb	$47, -1(%rbp)
	jle	.L16
	cmpb	$57, -1(%rbp)
	jg	.L16
.L15:
	jmp	.L17
.L19:
	movzbl	-3(%rbp), %edx
	movl	%edx, %eax
	sall	$2, %eax
	addl	%edx, %eax
	addl	%eax, %eax
	movl	%eax, %edx
	movzbl	-1(%rbp), %eax
	addl	%edx, %eax
	subl	$48, %eax
	movb	%al, -3(%rbp)
	call	getchar@PLT
	movb	%al, -1(%rbp)
.L17:
	cmpb	$47, -1(%rbp)
	jle	.L18
	cmpb	$57, -1(%rbp)
	jle	.L19
.L18:
	cmpb	$0, -2(%rbp)
	je	.L20
	movzbl	-3(%rbp), %eax
	negl	%eax
	jmp	.L22
.L20:
	movzbl	-3(%rbp), %eax
.L22:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	nextChar, .-nextChar
	.globl	nextShort
	.type	nextShort, @function
nextShort:
.LFB2:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	movw	$0, -2(%rbp)
	movb	$0, -4(%rbp)
	call	getchar@PLT
	movb	%al, -3(%rbp)
	jmp	.L24
.L27:
	cmpb	$45, -3(%rbp)
	jne	.L25
	movb	$1, -4(%rbp)
	call	getchar@PLT
	movb	%al, -3(%rbp)
	jmp	.L26
.L25:
	call	getchar@PLT
	movb	%al, -3(%rbp)
.L24:
	cmpb	$47, -3(%rbp)
	jle	.L27
	cmpb	$57, -3(%rbp)
	jg	.L27
.L26:
	jmp	.L28
.L30:
	movzwl	-2(%rbp), %edx
	movl	%edx, %eax
	sall	$2, %eax
	addl	%edx, %eax
	addl	%eax, %eax
	movl	%eax, %edx
	movsbw	-3(%rbp), %ax
	addl	%edx, %eax
	subl	$48, %eax
	movw	%ax, -2(%rbp)
	call	getchar@PLT
	movb	%al, -3(%rbp)
.L28:
	cmpb	$47, -3(%rbp)
	jle	.L29
	cmpb	$57, -3(%rbp)
	jle	.L30
.L29:
	cmpb	$0, -4(%rbp)
	je	.L31
	movzwl	-2(%rbp), %eax
	negl	%eax
	jmp	.L33
.L31:
	movzwl	-2(%rbp), %eax
.L33:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	nextShort, .-nextShort
	.globl	nextLong
	.type	nextLong, @function
nextLong:
.LFB3:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	movq	$0, -8(%rbp)
	movb	$0, -10(%rbp)
	call	getchar@PLT
	movb	%al, -9(%rbp)
	jmp	.L35
.L38:
	cmpb	$45, -9(%rbp)
	jne	.L36
	movb	$1, -10(%rbp)
	call	getchar@PLT
	movb	%al, -9(%rbp)
	jmp	.L37
.L36:
	call	getchar@PLT
	movb	%al, -9(%rbp)
.L35:
	cmpb	$47, -9(%rbp)
	jle	.L38
	cmpb	$57, -9(%rbp)
	jg	.L38
.L37:
	jmp	.L39
.L41:
	movq	-8(%rbp), %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	movq	%rax, %rdx
	movsbl	-9(%rbp), %eax
	subl	$48, %eax
	cltq
	addq	%rdx, %rax
	movq	%rax, -8(%rbp)
	call	getchar@PLT
	movb	%al, -9(%rbp)
.L39:
	cmpb	$47, -9(%rbp)
	jle	.L40
	cmpb	$57, -9(%rbp)
	jle	.L41
.L40:
	cmpb	$0, -10(%rbp)
	je	.L42
	movq	-8(%rbp), %rax
	negq	%rax
	jmp	.L44
.L42:
	movq	-8(%rbp), %rax
.L44:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	nextLong, .-nextLong
	.globl	println
	.type	println, @function
println:
.LFB4:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	$10, %edi
	call	putchar@PLT
	nop
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE4:
	.size	println, .-println
	.globl	print
	.type	print, @function
print:
.LFB5:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	movq	%rdi, -8(%rbp)
	jmp	.L47
.L48:
	movq	-8(%rbp), %rax
	movzbl	(%rax), %eax
	movsbl	%al, %eax
	movl	%eax, %edi
	call	putchar@PLT
	addq	$1, -8(%rbp)
.L47:
	movq	-8(%rbp), %rax
	movzbl	(%rax), %eax
	testb	%al, %al
	jne	.L48
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE5:
	.size	print, .-print
	.globl	printInt
	.type	printInt, @function
printInt:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$48, %rsp
	movl	%edi, -36(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	cmpl	$0, -36(%rbp)
	jne	.L50
	movl	$48, %edi
	call	putchar@PLT
	jmp	.L49
.L50:
	cmpl	$0, -36(%rbp)
	jns	.L52
	negl	-36(%rbp)
	movl	$45, %edi
	call	putchar@PLT
.L52:
	movb	$0, -19(%rbp)
	jmp	.L53
.L54:
	movl	-36(%rbp), %edx
	movslq	%edx, %rax
	imulq	$1717986919, %rax, %rax
	shrq	$32, %rax
	sarl	$2, %eax
	movl	%edx, %esi
	sarl	$31, %esi
	subl	%esi, %eax
	movl	%eax, %ecx
	movl	%ecx, %eax
	sall	$2, %eax
	addl	%ecx, %eax
	addl	%eax, %eax
	movl	%edx, %ecx
	subl	%eax, %ecx
	movl	%ecx, %eax
	leal	48(%rax), %edx
	movzbl	-19(%rbp), %eax
	addl	$1, %eax
	movb	%al, -19(%rbp)
	movsbl	-19(%rbp), %eax
	cltq
	movb	%dl, -18(%rbp,%rax)
	movl	-36(%rbp), %eax
	movslq	%eax, %rdx
	imulq	$1717986919, %rdx, %rdx
	shrq	$32, %rdx
	sarl	$2, %edx
	sarl	$31, %eax
	movl	%eax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	movl	%eax, -36(%rbp)
.L53:
	cmpl	$0, -36(%rbp)
	jne	.L54
	jmp	.L55
.L56:
	movzbl	-19(%rbp), %eax
	movl	%eax, %edx
	subl	$1, %edx
	movb	%dl, -19(%rbp)
	movsbl	%al, %eax
	cltq
	movzbl	-18(%rbp,%rax), %eax
	movsbl	%al, %eax
	movl	%eax, %edi
	call	putchar@PLT
.L55:
	cmpb	$0, -19(%rbp)
	jne	.L56
.L49:
	movq	-8(%rbp), %rax
	subq	%fs:40, %rax
	je	.L57
	call	__stack_chk_fail@PLT
.L57:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	printInt, .-printInt
	.globl	printLong
	.type	printLong, @function
printLong:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$64, %rsp
	movq	%rdi, -56(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	cmpq	$0, -56(%rbp)
	jne	.L59
	movl	$48, %edi
	call	putchar@PLT
	jmp	.L58
.L59:
	cmpq	$0, -56(%rbp)
	jns	.L61
	negq	-56(%rbp)
	movl	$45, %edi
	call	putchar@PLT
.L61:
	movb	$0, -33(%rbp)
	jmp	.L62
.L63:
	movq	-56(%rbp), %rcx
	movabsq	$7378697629483820647, %rdx
	movq	%rcx, %rax
	imulq	%rdx
	movq	%rdx, %rax
	sarq	$2, %rax
	movq	%rcx, %rsi
	sarq	$63, %rsi
	subq	%rsi, %rax
	movq	%rax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	subq	%rax, %rcx
	movq	%rcx, %rdx
	movl	%edx, %eax
	leal	48(%rax), %edx
	movzbl	-33(%rbp), %eax
	addl	$1, %eax
	movb	%al, -33(%rbp)
	movsbl	-33(%rbp), %eax
	cltq
	movb	%dl, -32(%rbp,%rax)
	movq	-56(%rbp), %rcx
	movabsq	$7378697629483820647, %rdx
	movq	%rcx, %rax
	imulq	%rdx
	movq	%rdx, %rax
	sarq	$2, %rax
	sarq	$63, %rcx
	movq	%rcx, %rdx
	subq	%rdx, %rax
	movq	%rax, -56(%rbp)
.L62:
	cmpq	$0, -56(%rbp)
	jne	.L63
	jmp	.L64
.L65:
	movzbl	-33(%rbp), %eax
	movl	%eax, %edx
	subl	$1, %edx
	movb	%dl, -33(%rbp)
	movsbl	%al, %eax
	cltq
	movzbl	-32(%rbp,%rax), %eax
	movsbl	%al, %eax
	movl	%eax, %edi
	call	putchar@PLT
.L64:
	cmpb	$0, -33(%rbp)
	jne	.L65
.L58:
	movq	-8(%rbp), %rax
	subq	%fs:40, %rax
	je	.L66
	call	__stack_chk_fail@PLT
.L66:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	printLong, .-printLong
	.globl	compare_int
	.type	compare_int, @function
compare_int:
.LFB8:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -8(%rbp)
	movq	%rsi, -16(%rbp)
	movq	-8(%rbp), %rax
	movl	(%rax), %edx
	movq	-16(%rbp), %rax
	movl	(%rax), %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	compare_int, .-compare_int
	.globl	compare_char
	.type	compare_char, @function
compare_char:
.LFB9:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -8(%rbp)
	movq	%rsi, -16(%rbp)
	movq	-8(%rbp), %rax
	movzbl	(%rax), %eax
	movsbl	%al, %edx
	movq	-16(%rbp), %rax
	movzbl	(%rax), %eax
	movsbl	%al, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	compare_char, .-compare_char
	.globl	compare_short
	.type	compare_short, @function
compare_short:
.LFB10:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -8(%rbp)
	movq	%rsi, -16(%rbp)
	movq	-8(%rbp), %rax
	movzwl	(%rax), %eax
	movswl	%ax, %edx
	movq	-16(%rbp), %rax
	movzwl	(%rax), %eax
	movswl	%ax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	compare_short, .-compare_short
	.globl	compare_long
	.type	compare_long, @function
compare_long:
.LFB11:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -8(%rbp)
	movq	%rsi, -16(%rbp)
	movq	-8(%rbp), %rax
	movq	(%rax), %rdx
	movq	-16(%rbp), %rax
	movq	(%rax), %rcx
	movq	%rdx, %rax
	subq	%rcx, %rax
	testq	%rax, %rax
	jns	.L74
	movl	$-1, %eax
	jmp	.L75
.L74:
	movq	-8(%rbp), %rax
	movq	(%rax), %rdx
	movq	-16(%rbp), %rax
	movq	(%rax), %rcx
	movq	%rdx, %rax
	subq	%rcx, %rax
	testq	%rax, %rax
	jle	.L76
	movl	$1, %eax
	jmp	.L75
.L76:
	movl	$0, %eax
.L75:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	compare_long, .-compare_long
	.globl	n
	.bss
	.align 2
	.type	n, @object
	.size	n, 2
n:
	.zero	2
	.globl	i
	.align 2
	.type	i, @object
	.size	i, 2
i:
	.zero	2
	.globl	l
	.align 32
	.type	l, @object
	.size	l, 200
l:
	.zero	200
	.globl	ans
	.align 4
	.type	ans, @object
	.size	ans, 4
ans:
	.zero	4
	.text
	.globl	main
	.type	main, @function
main:
.LFB12:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%rbx
	subq	$8, %rsp
	.cfi_offset 3, -24
	movl	$0, %eax
	call	nextShort
	addl	%eax, %eax
	movw	%ax, n(%rip)
	movw	$0, i(%rip)
	jmp	.L78
.L79:
	movzwl	i(%rip), %eax
	movswl	%ax, %ebx
	movl	$0, %eax
	call	nextChar
	movslq	%ebx, %rdx
	leaq	l(%rip), %rcx
	movb	%al, (%rdx,%rcx)
	movzwl	i(%rip), %eax
	addl	$1, %eax
	movw	%ax, i(%rip)
.L78:
	movzwl	i(%rip), %edx
	movzwl	n(%rip), %eax
	cmpw	%ax, %dx
	jl	.L79
	movzwl	n(%rip), %eax
	movswq	%ax, %rax
	leaq	compare_char(%rip), %rdx
	movq	%rdx, %rcx
	movl	$1, %edx
	movq	%rax, %rsi
	leaq	l(%rip), %rax
	movq	%rax, %rdi
	call	qsort@PLT
	movw	$0, i(%rip)
	jmp	.L80
.L81:
	movzwl	i(%rip), %eax
	cwtl
	cltq
	leaq	l(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	movsbl	%al, %edx
	movl	ans(%rip), %eax
	addl	%edx, %eax
	movl	%eax, ans(%rip)
	movzwl	i(%rip), %eax
	addl	$2, %eax
	movw	%ax, i(%rip)
.L80:
	movzwl	i(%rip), %edx
	movzwl	n(%rip), %eax
	cmpw	%ax, %dx
	jl	.L81
	movl	ans(%rip), %eax
	movl	%eax, %edi
	call	printInt
	movl	$0, %eax
	call	println
	movl	$0, %eax
	movq	-8(%rbp), %rbx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.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
	.globl	nextInt
	.type	nextInt, @function
nextInt:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	movl	$0, -4(%rbp)
	movb	$0, -6(%rbp)
	call	getchar@PLT
	movb	%al, -5(%rbp)
	jmp	.L2
.L5:
	cmpb	$45, -5(%rbp)
	jne	.L3
	movb	$1, -6(%rbp)
	call	getchar@PLT
	movb	%al, -5(%rbp)
	jmp	.L4
.L3:
	call	getchar@PLT
	movb	%al, -5(%rbp)
.L2:
	cmpb	$47, -5(%rbp)
	jle	.L5
	cmpb	$57, -5(%rbp)
	jg	.L5
.L4:
	jmp	.L6
.L8:
	movl	-4(%rbp), %edx
	movl	%edx, %eax
	sall	$2, %eax
	addl	%edx, %eax
	addl	%eax, %eax
	movl	%eax, %edx
	movsbl	-5(%rbp), %eax
	subl	$48, %eax
	addl	%edx, %eax
	movl	%eax, -4(%rbp)
	call	getchar@PLT
	movb	%al, -5(%rbp)
.L6:
	cmpb	$47, -5(%rbp)
	jle	.L7
	cmpb	$57, -5(%rbp)
	jle	.L8
.L7:
	cmpb	$0, -6(%rbp)
	je	.L9
	movl	-4(%rbp), %eax
	negl	%eax
	jmp	.L11
.L9:
	movl	-4(%rbp), %eax
.L11:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	nextInt, .-nextInt
	.globl	nextChar
	.type	nextChar, @function
nextChar:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	movb	$0, -3(%rbp)
	movb	$0, -2(%rbp)
	call	getchar@PLT
	movb	%al, -1(%rbp)
	jmp	.L13
.L16:
	cmpb	$45, -1(%rbp)
	jne	.L14
	movb	$1, -2(%rbp)
	call	getchar@PLT
	movb	%al, -1(%rbp)
	jmp	.L15
.L14:
	call	getchar@PLT
	movb	%al, -1(%rbp)
.L13:
	cmpb	$47, -1(%rbp)
	jle	.L16
	cmpb	$57, -1(%rbp)
	jg	.L16
.L15:
	jmp	.L17
.L19:
	movzbl	-3(%rbp), %edx
	movl	%edx, %eax
	sall	$2, %eax
	addl	%edx, %eax
	addl	%eax, %eax
	movl	%eax, %edx
	movzbl	-1(%rbp), %eax
	addl	%edx, %eax
	subl	$48, %eax
	movb	%al, -3(%rbp)
	call	getchar@PLT
	movb	%al, -1(%rbp)
.L17:
	cmpb	$47, -1(%rbp)
	jle	.L18
	cmpb	$57, -1(%rbp)
	jle	.L19
.L18:
	cmpb	$0, -2(%rbp)
	je	.L20
	movzbl	-3(%rbp), %eax
	negl	%eax
	jmp	.L22
.L20:
	movzbl	-3(%rbp), %eax
.L22:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	nextChar, .-nextChar
	.globl	nextShort
	.type	nextShort, @function
nextShort:
.LFB2:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	movw	$0, -2(%rbp)
	movb	$0, -4(%rbp)
	call	getchar@PLT
	movb	%al, -3(%rbp)
	jmp	.L24
.L27:
	cmpb	$45, -3(%rbp)
	jne	.L25
	movb	$1, -4(%rbp)
	call	getchar@PLT
	movb	%al, -3(%rbp)
	jmp	.L26
.L25:
	call	getchar@PLT
	movb	%al, -3(%rbp)
.L24:
	cmpb	$47, -3(%rbp)
	jle	.L27
	cmpb	$57, -3(%rbp)
	jg	.L27
.L26:
	jmp	.L28
.L30:
	movzwl	-2(%rbp), %edx
	movl	%edx, %eax
	sall	$2, %eax
	addl	%edx, %eax
	addl	%eax, %eax
	movl	%eax, %edx
	movsbw	-3(%rbp), %ax
	addl	%edx, %eax
	subl	$48, %eax
	movw	%ax, -2(%rbp)
	call	getchar@PLT
	movb	%al, -3(%rbp)
.L28:
	cmpb	$47, -3(%rbp)
	jle	.L29
	cmpb	$57, -3(%rbp)
	jle	.L30
.L29:
	cmpb	$0, -4(%rbp)
	je	.L31
	movzwl	-2(%rbp), %eax
	negl	%eax
	jmp	.L33
.L31:
	movzwl	-2(%rbp), %eax
.L33:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	nextShort, .-nextShort
	.globl	nextLong
	.type	nextLong, @function
nextLong:
.LFB3:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	movq	$0, -8(%rbp)
	movb	$0, -10(%rbp)
	call	getchar@PLT
	movb	%al, -9(%rbp)
	jmp	.L35
.L38:
	cmpb	$45, -9(%rbp)
	jne	.L36
	movb	$1, -10(%rbp)
	call	getchar@PLT
	movb	%al, -9(%rbp)
	jmp	.L37
.L36:
	call	getchar@PLT
	movb	%al, -9(%rbp)
.L35:
	cmpb	$47, -9(%rbp)
	jle	.L38
	cmpb	$57, -9(%rbp)
	jg	.L38
.L37:
	jmp	.L39
.L41:
	movq	-8(%rbp), %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	movq	%rax, %rdx
	movsbl	-9(%rbp), %eax
	subl	$48, %eax
	cltq
	addq	%rdx, %rax
	movq	%rax, -8(%rbp)
	call	getchar@PLT
	movb	%al, -9(%rbp)
.L39:
	cmpb	$47, -9(%rbp)
	jle	.L40
	cmpb	$57, -9(%rbp)
	jle	.L41
.L40:
	cmpb	$0, -10(%rbp)
	je	.L42
	movq	-8(%rbp), %rax
	negq	%rax
	jmp	.L44
.L42:
	movq	-8(%rbp), %rax
.L44:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	nextLong, .-nextLong
	.globl	println
	.type	println, @function
println:
.LFB4:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	$10, %edi
	call	putchar@PLT
	nop
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE4:
	.size	println, .-println
	.globl	print
	.type	print, @function
print:
.LFB5:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	movq	%rdi, -8(%rbp)
	jmp	.L47
.L48:
	movq	-8(%rbp), %rax
	movzbl	(%rax), %eax
	movsbl	%al, %eax
	movl	%eax, %edi
	call	putchar@PLT
	addq	$1, -8(%rbp)
.L47:
	movq	-8(%rbp), %rax
	movzbl	(%rax), %eax
	testb	%al, %al
	jne	.L48
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE5:
	.size	print, .-print
	.globl	printInt
	.type	printInt, @function
printInt:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$48, %rsp
	movl	%edi, -36(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	cmpl	$0, -36(%rbp)
	jne	.L50
	movl	$48, %edi
	call	putchar@PLT
	jmp	.L49
.L50:
	cmpl	$0, -36(%rbp)
	jns	.L52
	negl	-36(%rbp)
	movl	$45, %edi
	call	putchar@PLT
.L52:
	movb	$0, -19(%rbp)
	jmp	.L53
.L54:
	movl	-36(%rbp), %edx
	movslq	%edx, %rax
	imulq	$1717986919, %rax, %rax
	shrq	$32, %rax
	sarl	$2, %eax
	movl	%edx, %esi
	sarl	$31, %esi
	subl	%esi, %eax
	movl	%eax, %ecx
	movl	%ecx, %eax
	sall	$2, %eax
	addl	%ecx, %eax
	addl	%eax, %eax
	movl	%edx, %ecx
	subl	%eax, %ecx
	movl	%ecx, %eax
	leal	48(%rax), %edx
	movzbl	-19(%rbp), %eax
	addl	$1, %eax
	movb	%al, -19(%rbp)
	movsbl	-19(%rbp), %eax
	cltq
	movb	%dl, -18(%rbp,%rax)
	movl	-36(%rbp), %eax
	movslq	%eax, %rdx
	imulq	$1717986919, %rdx, %rdx
	shrq	$32, %rdx
	sarl	$2, %edx
	sarl	$31, %eax
	movl	%eax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	movl	%eax, -36(%rbp)
.L53:
	cmpl	$0, -36(%rbp)
	jne	.L54
	jmp	.L55
.L56:
	movzbl	-19(%rbp), %eax
	movl	%eax, %edx
	subl	$1, %edx
	movb	%dl, -19(%rbp)
	movsbl	%al, %eax
	cltq
	movzbl	-18(%rbp,%rax), %eax
	movsbl	%al, %eax
	movl	%eax, %edi
	call	putchar@PLT
.L55:
	cmpb	$0, -19(%rbp)
	jne	.L56
.L49:
	movq	-8(%rbp), %rax
	subq	%fs:40, %rax
	je	.L57
	call	__stack_chk_fail@PLT
.L57:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	printInt, .-printInt
	.globl	printLong
	.type	printLong, @function
printLong:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$64, %rsp
	movq	%rdi, -56(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	cmpq	$0, -56(%rbp)
	jne	.L59
	movl	$48, %edi
	call	putchar@PLT
	jmp	.L58
.L59:
	cmpq	$0, -56(%rbp)
	jns	.L61
	negq	-56(%rbp)
	movl	$45, %edi
	call	putchar@PLT
.L61:
	movb	$0, -33(%rbp)
	jmp	.L62
.L63:
	movq	-56(%rbp), %rcx
	movabsq	$7378697629483820647, %rdx
	movq	%rcx, %rax
	imulq	%rdx
	movq	%rdx, %rax
	sarq	$2, %rax
	movq	%rcx, %rsi
	sarq	$63, %rsi
	subq	%rsi, %rax
	movq	%rax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	subq	%rax, %rcx
	movq	%rcx, %rdx
	movl	%edx, %eax
	leal	48(%rax), %edx
	movzbl	-33(%rbp), %eax
	addl	$1, %eax
	movb	%al, -33(%rbp)
	movsbl	-33(%rbp), %eax
	cltq
	movb	%dl, -32(%rbp,%rax)
	movq	-56(%rbp), %rcx
	movabsq	$7378697629483820647, %rdx
	movq	%rcx, %rax
	imulq	%rdx
	movq	%rdx, %rax
	sarq	$2, %rax
	sarq	$63, %rcx
	movq	%rcx, %rdx
	subq	%rdx, %rax
	movq	%rax, -56(%rbp)
.L62:
	cmpq	$0, -56(%rbp)
	jne	.L63
	jmp	.L64
.L65:
	movzbl	-33(%rbp), %eax
	movl	%eax, %edx
	subl	$1, %edx
	movb	%dl, -33(%rbp)
	movsbl	%al, %eax
	cltq
	movzbl	-32(%rbp,%rax), %eax
	movsbl	%al, %eax
	movl	%eax, %edi
	call	putchar@PLT
.L64:
	cmpb	$0, -33(%rbp)
	jne	.L65
.L58:
	movq	-8(%rbp), %rax
	subq	%fs:40, %rax
	je	.L66
	call	__stack_chk_fail@PLT
.L66:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	printLong, .-printLong
	.globl	compare_int
	.type	compare_int, @function
compare_int:
.LFB8:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -8(%rbp)
	movq	%rsi, -16(%rbp)
	movq	-8(%rbp), %rax
	movl	(%rax), %edx
	movq	-16(%rbp), %rax
	movl	(%rax), %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	compare_int, .-compare_int
	.globl	compare_char
	.type	compare_char, @function
compare_char:
.LFB9:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -8(%rbp)
	movq	%rsi, -16(%rbp)
	movq	-8(%rbp), %rax
	movzbl	(%rax), %eax
	movsbl	%al, %edx
	movq	-16(%rbp), %rax
	movzbl	(%rax), %eax
	movsbl	%al, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	compare_char, .-compare_char
	.globl	compare_short
	.type	compare_short, @function
compare_short:
.LFB10:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -8(%rbp)
	movq	%rsi, -16(%rbp)
	movq	-8(%rbp), %rax
	movzwl	(%rax), %eax
	movswl	%ax, %edx
	movq	-16(%rbp), %rax
	movzwl	(%rax), %eax
	movswl	%ax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	compare_short, .-compare_short
	.globl	compare_long
	.type	compare_long, @function
compare_long:
.LFB11:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -8(%rbp)
	movq	%rsi, -16(%rbp)
	movq	-8(%rbp), %rax
	movq	(%rax), %rdx
	movq	-16(%rbp), %rax
	movq	(%rax), %rcx
	movq	%rdx, %rax
	subq	%rcx, %rax
	testq	%rax, %rax
	jns	.L74
	movl	$-1, %eax
	jmp	.L75
.L74:
	movq	-8(%rbp), %rax
	movq	(%rax), %rdx
	movq	-16(%rbp), %rax
	movq	(%rax), %rcx
	movq	%rdx, %rax
	subq	%rcx, %rax
	testq	%rax, %rax
	jle	.L76
	movl	$1, %eax
	jmp	.L75
.L76:
	movl	$0, %eax
.L75:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	compare_long, .-compare_long
	.globl	n
	.bss
	.align 2
	.type	n, @object
	.size	n, 2
n:
	.zero	2
	.globl	i
	.align 2
	.type	i, @object
	.size	i, 2
i:
	.zero	2
	.globl	l
	.align 32
	.type	l, @object
	.size	l, 200
l:
	.zero	200
	.globl	ans
	.align 4
	.type	ans, @object
	.size	ans, 4
ans:
	.zero	4
	.text
	.globl	main
	.type	main, @function
main:
.LFB12:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%rbx
	subq	$8, %rsp
	.cfi_offset 3, -24
	movl	$0, %eax
	call	nextShort
	addl	%eax, %eax
	movw	%ax, n(%rip)
	movw	$0, i(%rip)
	jmp	.L78
.L79:
	movzwl	i(%rip), %eax
	movswl	%ax, %ebx
	movl	$0, %eax
	call	nextChar
	movslq	%ebx, %rdx
	leaq	l(%rip), %rcx
	movb	%al, (%rdx,%rcx)
	movzwl	i(%rip), %eax
	addl	$1, %eax
	movw	%ax, i(%rip)
.L78:
	movzwl	i(%rip), %edx
	movzwl	n(%rip), %eax
	cmpw	%ax, %dx
	jl	.L79
	movzwl	n(%rip), %eax
	movswq	%ax, %rax
	leaq	compare_char(%rip), %rdx
	movq	%rdx, %rcx
	movl	$1, %edx
	movq	%rax, %rsi
	leaq	l(%rip), %rax
	movq	%rax, %rdi
	call	qsort@PLT
	movw	$0, i(%rip)
	jmp	.L80
.L81:
	movzwl	i(%rip), %eax
	cwtl
	cltq
	leaq	l(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	movsbl	%al, %edx
	movl	ans(%rip), %eax
	addl	%edx, %eax
	movl	%eax, ans(%rip)
	movzwl	i(%rip), %eax
	addl	$2, %eax
	movw	%ax, i(%rip)
.L80:
	movzwl	i(%rip), %edx
	movzwl	n(%rip), %eax
	cmpw	%ax, %dx
	jl	.L81
	movl	ans(%rip), %eax
	movl	%eax, %edi
	call	printInt
	movl	$0, %eax
	call	println
	movl	$0, %eax
	movq	-8(%rbp), %rbx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.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:
