Given the following C code and 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;
}```

Assembly Code:

```assembly
	.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:
```

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.
Optimized Assembly Code:

user
```assembly
	.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
```assembly
	.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:
```
```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;
}```
Given the following C 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;
}```

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.
Optimized Assembly Code:

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 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;
}```

Assembly Code:

```assembly
	.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:
```

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.
Optimized Assembly Code:

train
```assembly
	.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:
```