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;
  long mod = 1000000007;
  scanf("%d\n",&n);
  char a[n];
  int b[26];
  for(int i = 0; i < 26; ++i) b[i] = 0;
  for(int i = 0; i < n; ++i) scanf("%c",&a[i]);
  for(int i = 0; i < n; ++i){
    b[a[i] - 'a']++;
  }
  long answer = 1;
  for(int i = 0; i < 26; ++i){
    answer *= (1 + (long)b[i]);
    answer = answer % mod;
  }
  answer--;
  answer = answer % mod;
  printf("%ld\n",answer);
  return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d\n"
.LC1:
	.string	"%c"
.LC2:
	.string	"%ld\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$184, %rsp
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	movq	%rsp, %rax
	movq	%rax, %rbx
	movq	$1000000007, -184(%rbp)
	leaq	-212(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-212(%rbp), %eax
	movslq	%eax, %rdx
	subq	$1, %rdx
	movq	%rdx, -176(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, %r14
	movl	$0, %r15d
	movslq	%eax, %rdx
	movq	%rdx, %r12
	movl	$0, %r13d
	cltq
	movl	$16, %edx
	subq	$1, %rdx
	addq	%rdx, %rax
	movl	$16, %esi
	movl	$0, %edx
	divq	%rsi
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L2:
	cmpq	%rdx, %rsp
	je	.L3
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L2
.L3:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L4
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L4:
	movq	%rsp, %rax
	addq	$0, %rax
	movq	%rax, -168(%rbp)
	movl	$0, -208(%rbp)
	jmp	.L5
.L6:
	movl	-208(%rbp), %eax
	cltq
	movl	$0, -160(%rbp,%rax,4)
	addl	$1, -208(%rbp)
.L5:
	cmpl	$25, -208(%rbp)
	jle	.L6
	movl	$0, -204(%rbp)
	jmp	.L7
.L8:
	movl	-204(%rbp), %eax
	movslq	%eax, %rdx
	movq	-168(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -204(%rbp)
.L7:
	movl	-212(%rbp), %eax
	cmpl	%eax, -204(%rbp)
	jl	.L8
	movl	$0, -200(%rbp)
	jmp	.L9
.L10:
	movq	-168(%rbp), %rdx
	movl	-200(%rbp), %eax
	cltq
	movzbl	(%rdx,%rax), %eax
	movsbl	%al, %eax
	subl	$97, %eax
	movslq	%eax, %rdx
	movl	-160(%rbp,%rdx,4), %edx
	addl	$1, %edx
	cltq
	movl	%edx, -160(%rbp,%rax,4)
	addl	$1, -200(%rbp)
.L9:
	movl	-212(%rbp), %eax
	cmpl	%eax, -200(%rbp)
	jl	.L10
	movq	$1, -192(%rbp)
	movl	$0, -196(%rbp)
	jmp	.L11
.L12:
	movl	-196(%rbp), %eax
	cltq
	movl	-160(%rbp,%rax,4), %eax
	cltq
	leaq	1(%rax), %rdx
	movq	-192(%rbp), %rax
	imulq	%rdx, %rax
	movq	%rax, -192(%rbp)
	movq	-192(%rbp), %rax
	cqto
	idivq	-184(%rbp)
	movq	%rdx, -192(%rbp)
	addl	$1, -196(%rbp)
.L11:
	cmpl	$25, -196(%rbp)
	jle	.L12
	subq	$1, -192(%rbp)
	movq	-192(%rbp), %rax
	cqto
	idivq	-184(%rbp)
	movq	%rdx, -192(%rbp)
	movq	-192(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	%rbx, %rsp
	movq	-56(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L14
	call	__stack_chk_fail@PLT
.L14:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:
```

Only output the optimized assembly code. Do not include any other text. Do not write any comments in the assembly code. Wrap the assembly code in ```assembly``` tags.
user
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d\n"
.LC1:
	.string	"%c"
.LC2:
	.string	"%ld\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	leaq	.LC0(%rip), %rdi
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r15
	pushq	%r14
	leaq	-164(%rbp), %rsi
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$136, %rsp
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movslq	-164(%rbp), %rax
	movq	%rsp, %rcx
	movq	%rax, %rsi
	addq	$15, %rax
	movq	%rax, %rdx
	andq	$-4096, %rax
	subq	%rax, %rcx
	andq	$-16, %rdx
	cmpq	%rcx, %rsp
	je	.L3
.L18:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rcx, %rsp
	jne	.L18
.L3:
	andl	$4095, %edx
	subq	%rdx, %rsp
	testq	%rdx, %rdx
	jne	.L19
.L4:
	leaq	-160(%rbp), %rbx
	movl	$13, %ecx
	xorl	%eax, %eax
	movq	%rsp, %r15
	movq	%rbx, %rdi
	rep stosq
	testl	%esi, %esi
	jle	.L5
	xorl	%r13d, %r13d
	leaq	.LC1(%rip), %r14
	.p2align 4,,10
	.p2align 3
.L6:
	leaq	(%r15,%r13), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	addq	$1, %r13
	call	__isoc99_scanf@PLT
	movslq	-164(%rbp), %rax
	movq	%r15, %r12
	cmpl	%r13d, %eax
	jg	.L6
	testl	%eax, %eax
	jle	.L5
	leaq	(%r15,%rax), %rdx
	.p2align 4,,10
	.p2align 3
.L7:
	movsbl	(%r12), %eax
	addq	$1, %r12
	subl	$97, %eax
	cltq
	addl	$1, -160(%rbp,%rax,4)
	cmpq	%r12, %rdx
	jne	.L7
.L5:
	movq	%rbx, %rdi
	leaq	-56(%rbp), %r8
	movl	$1, %edx
	movabsq	$-8543223828751151131, %rsi
	.p2align 4,,10
	.p2align 3
.L8:
	movslq	(%rdi), %rcx
	addq	$4, %rdi
	addq	$1, %rcx
	imulq	%rdx, %rcx
	movq	%rcx, %rax
	imulq	%rsi
	movq	%rcx, %rax
	sarq	$63, %rax
	addq	%rcx, %rdx
	sarq	$29, %rdx
	subq	%rax, %rdx
	imulq	$1000000007, %rdx, %rax
	subq	%rax, %rcx
	movq	%rcx, %rdx
	cmpq	%r8, %rdi
	jne	.L8
	leaq	-1(%rcx), %rcx
	movl	$1, %edi
	movq	%rcx, %rax
	imulq	%rsi
	leaq	.LC2(%rip), %rsi
	leaq	(%rdx,%rcx), %rax
	movq	%rcx, %rdx
	sarq	$63, %rdx
	sarq	$29, %rax
	subq	%rdx, %rax
	movq	%rcx, %rdx
	imulq	$1000000007, %rax, %rax
	subq	%rax, %rdx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	-56(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L20
	leaq	-40(%rbp), %rsp
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
.L19:
	.cfi_restore_state
	orq	$0, -8(%rsp,%rdx)
	jmp	.L4
.L20:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:

rule
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d\n"
.LC1:
	.string	"%c"
.LC2:
	.string	"%ld\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	leaq	.LC0(%rip), %rdi
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r15
	pushq	%r14
	leaq	-164(%rbp), %rsi
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$136, %rsp
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movslq	-164(%rbp), %rax
	movq	%rsp, %rcx
	movq	%rax, %rsi
	addq	$15, %rax
	movq	%rax, %rdx
	andq	$-4096, %rax
	subq	%rax, %rcx
	andq	$-16, %rdx
	cmpq	%rcx, %rsp
	je	.L3
.L18:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rcx, %rsp
	jne	.L18
.L3:
	andl	$4095, %edx
	subq	%rdx, %rsp
	testq	%rdx, %rdx
	jne	.L19
.L4:
	leaq	-160(%rbp), %rbx
	movl	$13, %ecx
	xorl	%eax, %eax
	movq	%rsp, %r15
	movq	%rbx, %rdi
	rep stosq
	testl	%esi, %esi
	jle	.L5
	xorl	%r13d, %r13d
	leaq	.LC1(%rip), %r14
	.p2align 4,,10
	.p2align 3
.L6:
	leaq	(%r15,%r13), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	addq	$1, %r13
	call	__isoc99_scanf@PLT
	movslq	-164(%rbp), %rax
	movq	%r15, %r12
	cmpl	%r13d, %eax
	jg	.L6
	testl	%eax, %eax
	jle	.L5
	leaq	(%r15,%rax), %rdx
	.p2align 4,,10
	.p2align 3
.L7:
	movsbl	(%r12), %eax
	addq	$1, %r12
	subl	$97, %eax
	cltq
	addl	$1, -160(%rbp,%rax,4)
	cmpq	%r12, %rdx
	jne	.L7
.L5:
	movq	%rbx, %rdi
	leaq	-56(%rbp), %r8
	movl	$1, %edx
	movabsq	$-8543223828751151131, %rsi
	.p2align 4,,10
	.p2align 3
.L8:
	movslq	(%rdi), %rcx
	addq	$4, %rdi
	addq	$1, %rcx
	imulq	%rdx, %rcx
	movq	%rcx, %rax
	imulq	%rsi
	movq	%rcx, %rax
	sarq	$63, %rax
	addq	%rcx, %rdx
	sarq	$29, %rdx
	subq	%rax, %rdx
	imulq	$1000000007, %rdx, %rax
	subq	%rax, %rcx
	movq	%rcx, %rdx
	cmpq	%r8, %rdi
	jne	.L8
	leaq	-1(%rcx), %rcx
	movl	$1, %edi
	movq	%rcx, %rax
	imulq	%rsi
	leaq	.LC2(%rip), %rsi
	leaq	(%rdx,%rcx), %rax
	movq	%rcx, %rdx
	sarq	$63, %rdx
	sarq	$29, %rax
	subq	%rdx, %rax
	movq	%rcx, %rdx
	imulq	$1000000007, %rax, %rax
	subq	%rax, %rdx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	-56(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L20
	leaq	-40(%rbp), %rsp
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
.L19:
	.cfi_restore_state
	orq	$0, -8(%rsp,%rdx)
	jmp	.L4
.L20:
	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;
  long mod = 1000000007;
  scanf("%d\n",&n);
  char a[n];
  int b[26];
  for(int i = 0; i < 26; ++i) b[i] = 0;
  for(int i = 0; i < n; ++i) scanf("%c",&a[i]);
  for(int i = 0; i < n; ++i){
    b[a[i] - 'a']++;
  }
  long answer = 1;
  for(int i = 0; i < 26; ++i){
    answer *= (1 + (long)b[i]);
    answer = answer % mod;
  }
  answer--;
  answer = answer % mod;
  printf("%ld\n",answer);
  return 0;
}
3
aab
 4
dcba
 4
bbcd
 3
bac
 5
bbbba
 5
aabbc
 3
aaa
 4
adda
 5
abcda
 4
bbbb

5
 15
 11
 7
 9
 17
 3
 8
 23
 4

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;
  long mod = 1000000007;
  scanf("%d\n",&n);
  char a[n];
  int b[26];
  for(int i = 0; i < 26; ++i) b[i] = 0;
  for(int i = 0; i < n; ++i) scanf("%c",&a[i]);
  for(int i = 0; i < n; ++i){
    b[a[i] - 'a']++;
  }
  long answer = 1;
  for(int i = 0; i < 26; ++i){
    answer *= (1 + (long)b[i]);
    answer = answer % mod;
  }
  answer--;
  answer = answer % mod;
  printf("%ld\n",answer);
  return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d\n"
.LC1:
	.string	"%c"
.LC2:
	.string	"%ld\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$184, %rsp
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	movq	%rsp, %rax
	movq	%rax, %rbx
	movq	$1000000007, -184(%rbp)
	leaq	-212(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-212(%rbp), %eax
	movslq	%eax, %rdx
	subq	$1, %rdx
	movq	%rdx, -176(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, %r14
	movl	$0, %r15d
	movslq	%eax, %rdx
	movq	%rdx, %r12
	movl	$0, %r13d
	cltq
	movl	$16, %edx
	subq	$1, %rdx
	addq	%rdx, %rax
	movl	$16, %esi
	movl	$0, %edx
	divq	%rsi
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L2:
	cmpq	%rdx, %rsp
	je	.L3
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L2
.L3:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L4
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L4:
	movq	%rsp, %rax
	addq	$0, %rax
	movq	%rax, -168(%rbp)
	movl	$0, -208(%rbp)
	jmp	.L5
.L6:
	movl	-208(%rbp), %eax
	cltq
	movl	$0, -160(%rbp,%rax,4)
	addl	$1, -208(%rbp)
.L5:
	cmpl	$25, -208(%rbp)
	jle	.L6
	movl	$0, -204(%rbp)
	jmp	.L7
.L8:
	movl	-204(%rbp), %eax
	movslq	%eax, %rdx
	movq	-168(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -204(%rbp)
.L7:
	movl	-212(%rbp), %eax
	cmpl	%eax, -204(%rbp)
	jl	.L8
	movl	$0, -200(%rbp)
	jmp	.L9
.L10:
	movq	-168(%rbp), %rdx
	movl	-200(%rbp), %eax
	cltq
	movzbl	(%rdx,%rax), %eax
	movsbl	%al, %eax
	subl	$97, %eax
	movslq	%eax, %rdx
	movl	-160(%rbp,%rdx,4), %edx
	addl	$1, %edx
	cltq
	movl	%edx, -160(%rbp,%rax,4)
	addl	$1, -200(%rbp)
.L9:
	movl	-212(%rbp), %eax
	cmpl	%eax, -200(%rbp)
	jl	.L10
	movq	$1, -192(%rbp)
	movl	$0, -196(%rbp)
	jmp	.L11
.L12:
	movl	-196(%rbp), %eax
	cltq
	movl	-160(%rbp,%rax,4), %eax
	cltq
	leaq	1(%rax), %rdx
	movq	-192(%rbp), %rax
	imulq	%rdx, %rax
	movq	%rax, -192(%rbp)
	movq	-192(%rbp), %rax
	cqto
	idivq	-184(%rbp)
	movq	%rdx, -192(%rbp)
	addl	$1, -196(%rbp)
.L11:
	cmpl	$25, -196(%rbp)
	jle	.L12
	subq	$1, -192(%rbp)
	movq	-192(%rbp), %rax
	cqto
	idivq	-184(%rbp)
	movq	%rdx, -192(%rbp)
	movq	-192(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	%rbx, %rsp
	movq	-56(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L14
	call	__stack_chk_fail@PLT
.L14:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:
```

Only output the optimized assembly code. Do not include any other text. Do not write any comments in the assembly code. Wrap the assembly code in ```assembly``` tags.
train
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d\n"
.LC1:
	.string	"%c"
.LC2:
	.string	"%ld\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$184, %rsp
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	movq	%rsp, %rax
	movq	%rax, %rbx
	movq	$1000000007, -184(%rbp)
	leaq	-212(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-212(%rbp), %eax
	movslq	%eax, %rdx
	subq	$1, %rdx
	movq	%rdx, -176(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, %r14
	movl	$0, %r15d
	movslq	%eax, %rdx
	movq	%rdx, %r12
	movl	$0, %r13d
	cltq
	movl	$16, %edx
	subq	$1, %rdx
	addq	%rdx, %rax
	movl	$16, %esi
	movl	$0, %edx
	divq	%rsi
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L2:
	cmpq	%rdx, %rsp
	je	.L3
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L2
.L3:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L4
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L4:
	movq	%rsp, %rax
	addq	$0, %rax
	movq	%rax, -168(%rbp)
	movl	$0, -208(%rbp)
	jmp	.L5
.L6:
	movl	-208(%rbp), %eax
	cltq
	movl	$0, -160(%rbp,%rax,4)
	addl	$1, -208(%rbp)
.L5:
	cmpl	$25, -208(%rbp)
	jle	.L6
	movl	$0, -204(%rbp)
	jmp	.L7
.L8:
	movl	-204(%rbp), %eax
	movslq	%eax, %rdx
	movq	-168(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -204(%rbp)
.L7:
	movl	-212(%rbp), %eax
	cmpl	%eax, -204(%rbp)
	jl	.L8
	movl	$0, -200(%rbp)
	jmp	.L9
.L10:
	movq	-168(%rbp), %rdx
	movl	-200(%rbp), %eax
	cltq
	movzbl	(%rdx,%rax), %eax
	movsbl	%al, %eax
	subl	$97, %eax
	movslq	%eax, %rdx
	movl	-160(%rbp,%rdx,4), %edx
	addl	$1, %edx
	cltq
	movl	%edx, -160(%rbp,%rax,4)
	addl	$1, -200(%rbp)
.L9:
	movl	-212(%rbp), %eax
	cmpl	%eax, -200(%rbp)
	jl	.L10
	movq	$1, -192(%rbp)
	movl	$0, -196(%rbp)
	jmp	.L11
.L12:
	movl	-196(%rbp), %eax
	cltq
	movl	-160(%rbp,%rax,4), %eax
	cltq
	leaq	1(%rax), %rdx
	movq	-192(%rbp), %rax
	imulq	%rdx, %rax
	movq	%rax, -192(%rbp)
	movq	-192(%rbp), %rax
	cqto
	idivq	-184(%rbp)
	movq	%rdx, -192(%rbp)
	addl	$1, -196(%rbp)
.L11:
	cmpl	$25, -196(%rbp)
	jle	.L12
	subq	$1, -192(%rbp)
	movq	-192(%rbp), %rax
	cqto
	idivq	-184(%rbp)
	movq	%rdx, -192(%rbp)
	movq	-192(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	%rbx, %rsp
	movq	-56(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L14
	call	__stack_chk_fail@PLT
.L14:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.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:
