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

```c
#include<stdio.h>
int main(){
  int n,i;
  long long m=0,a=0,r=0,c=0,h=0,count=0;
  scanf("%d",&n);
  char s[n+1][11];
  for(i=0;i<n;i++){
    scanf("%*c%s",s[i]);
    if(s[i][0]=='M') m++;
    if(s[i][0]=='A') a++;
    if(s[i][0]=='R') r++;
    if(s[i][0]=='C') c++;
    if(s[i][0]=='H') h++;
  }
  count=m*a*(r+c+h)+m*r*(c+h)+m*c*h+a*r*(c+h)+a*c*h+r*c*h;
  printf("%lld\n",count);
  return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%*c%s"
.LC2:
	.string	"%lld\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	$88, %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	$0, -120(%rbp)
	movq	$0, -112(%rbp)
	movq	$0, -104(%rbp)
	movq	$0, -96(%rbp)
	movq	$0, -88(%rbp)
	movq	$0, -80(%rbp)
	leaq	-128(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-128(%rbp), %eax
	leal	1(%rax), %ecx
	movslq	%ecx, %rax
	subq	$1, %rax
	movq	%rax, -72(%rbp)
	movslq	%ecx, %rax
	movq	%rax, %r14
	movl	$0, %r15d
	imulq	$88, %r15, %rdx
	imulq	$0, %r14, %rax
	leaq	(%rdx,%rax), %rsi
	movl	$88, %eax
	mulq	%r14
	addq	%rdx, %rsi
	movq	%rsi, %rdx
	movslq	%ecx, %rax
	movq	%rax, %r12
	movl	$0, %r13d
	imulq	$88, %r13, %rdx
	imulq	$0, %r12, %rax
	leaq	(%rdx,%rax), %rsi
	movl	$88, %eax
	mulq	%r12
	addq	%rdx, %rsi
	movq	%rsi, %rdx
	movslq	%ecx, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rax, %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %edi
	movl	$0, %edx
	divq	%rdi
	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, -64(%rbp)
	movl	$0, -124(%rbp)
	jmp	.L5
.L11:
	movl	-124(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	movq	-64(%rbp), %rdx
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	-64(%rbp), %rcx
	movl	-124(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movzbl	(%rax), %eax
	cmpb	$77, %al
	jne	.L6
	addq	$1, -120(%rbp)
.L6:
	movq	-64(%rbp), %rcx
	movl	-124(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movzbl	(%rax), %eax
	cmpb	$65, %al
	jne	.L7
	addq	$1, -112(%rbp)
.L7:
	movq	-64(%rbp), %rcx
	movl	-124(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movzbl	(%rax), %eax
	cmpb	$82, %al
	jne	.L8
	addq	$1, -104(%rbp)
.L8:
	movq	-64(%rbp), %rcx
	movl	-124(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movzbl	(%rax), %eax
	cmpb	$67, %al
	jne	.L9
	addq	$1, -96(%rbp)
.L9:
	movq	-64(%rbp), %rcx
	movl	-124(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movzbl	(%rax), %eax
	cmpb	$72, %al
	jne	.L10
	addq	$1, -88(%rbp)
.L10:
	addl	$1, -124(%rbp)
.L5:
	movl	-128(%rbp), %eax
	cmpl	%eax, -124(%rbp)
	jl	.L11
	movq	-120(%rbp), %rax
	imulq	-112(%rbp), %rax
	movq	-104(%rbp), %rcx
	movq	-96(%rbp), %rdx
	addq	%rdx, %rcx
	movq	-88(%rbp), %rdx
	addq	%rcx, %rdx
	imulq	%rdx, %rax
	movq	%rax, %rcx
	movq	-120(%rbp), %rax
	imulq	-104(%rbp), %rax
	movq	-96(%rbp), %rsi
	movq	-88(%rbp), %rdx
	addq	%rsi, %rdx
	imulq	%rdx, %rax
	leaq	(%rcx,%rax), %rdx
	movq	-120(%rbp), %rax
	imulq	-96(%rbp), %rax
	imulq	-88(%rbp), %rax
	leaq	(%rdx,%rax), %rsi
	movq	-112(%rbp), %rax
	imulq	-104(%rbp), %rax
	movq	-96(%rbp), %rcx
	movq	-88(%rbp), %rdx
	addq	%rcx, %rdx
	imulq	%rdx, %rax
	leaq	(%rsi,%rax), %rdx
	movq	-112(%rbp), %rax
	imulq	-96(%rbp), %rax
	imulq	-88(%rbp), %rax
	addq	%rax, %rdx
	movq	-104(%rbp), %rax
	imulq	-96(%rbp), %rax
	imulq	-88(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, -80(%rbp)
	movq	-80(%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	.L13
	call	__stack_chk_fail@PLT
.L13:
	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"
.LC1:
	.string	"%*c%s"
.LC2:
	.string	"%lld\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	-60(%rbp), %rsi
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$56, %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
	movl	-60(%rbp), %ecx
	movq	%rsp, %rsi
	leal	1(%rcx), %eax
	cltq
	leaq	(%rax,%rax,4), %rdx
	leaq	15(%rax,%rdx,2), %rax
	movq	%rax, %rdx
	andq	$-4096, %rax
	subq	%rax, %rsi
	andq	$-16, %rdx
	cmpq	%rsi, %rsp
	je	.L3
.L25:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rsi, %rsp
	jne	.L25
.L3:
	andl	$4095, %edx
	subq	%rdx, %rsp
	testq	%rdx, %rdx
	jne	.L26
.L4:
	testl	%ecx, %ecx
	jle	.L16
	movq	$0, -72(%rbp)
	movq	%rsp, %r14
	xorl	%r13d, %r13d
	xorl	%ebx, %ebx
	movq	$0, -88(%rbp)
	xorl	%r12d, %r12d
	leaq	.LC1(%rip), %r15
	movq	$0, -80(%rbp)
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L6:
	cmpb	$65, %al
	je	.L8
	cmpb	$82, %al
	jne	.L27
	addq	$1, -72(%rbp)
.L7:
	addl	$1, %r12d
	addq	$11, %r14
	cmpl	%r12d, -60(%rbp)
	jle	.L5
.L14:
	movq	%r14, %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movzbl	(%r14), %eax
	cmpb	$77, %al
	jne	.L6
	addq	$1, -80(%rbp)
	addl	$1, %r12d
	addq	$11, %r14
	cmpl	%r12d, -60(%rbp)
	jg	.L14
.L5:
	movq	-80(%rbp), %rsi
	movq	-88(%rbp), %r8
	leaq	0(%r13,%rbx), %rcx
	movq	-72(%rbp), %rdi
	movq	%rsi, %rax
	imulq	%r8, %rax
	leaq	(%rbx,%rdi), %rdx
	addq	%r13, %rdx
	imulq	%rax, %rdx
	movq	%rdi, %rax
	imulq	%rsi, %rax
	imulq	%rbx, %rsi
	imulq	%rcx, %rax
	movq	%rsi, %r12
	leaq	.LC2(%rip), %rsi
	imulq	%r13, %r12
	addq	%rax, %rdx
	movq	%rdi, %rax
	imulq	%r8, %rax
	imulq	%rbx, %r8
	addq	%r12, %rdx
	imulq	%rdi, %rbx
	movl	$1, %edi
	imulq	%rcx, %rax
	imulq	%r13, %rbx
	addq	%rax, %rdx
	movq	%r8, %rax
	imulq	%r13, %rax
	addq	%rax, %rdx
	xorl	%eax, %eax
	addq	%rbx, %rdx
	call	__printf_chk@PLT
	movq	-56(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L28
	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
.L27:
	.cfi_restore_state
	cmpb	$67, %al
	jne	.L29
	addq	$1, %rbx
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L8:
	addq	$1, -88(%rbp)
	jmp	.L7
.L29:
	cmpb	$72, %al
	jne	.L7
	addq	$1, %r13
	jmp	.L7
.L26:
	orq	$0, -8(%rsp,%rdx)
	jmp	.L4
.L16:
	movq	$0, -72(%rbp)
	xorl	%r13d, %r13d
	xorl	%ebx, %ebx
	movq	$0, -88(%rbp)
	movq	$0, -80(%rbp)
	jmp	.L5
.L28:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:

rule
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%*c%s"
.LC2:
	.string	"%lld\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	-60(%rbp), %rsi
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$56, %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
	movl	-60(%rbp), %ecx
	movq	%rsp, %rsi
	leal	1(%rcx), %eax
	cltq
	leaq	(%rax,%rax,4), %rdx
	leaq	15(%rax,%rdx,2), %rax
	movq	%rax, %rdx
	andq	$-4096, %rax
	subq	%rax, %rsi
	andq	$-16, %rdx
	cmpq	%rsi, %rsp
	je	.L3
.L25:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rsi, %rsp
	jne	.L25
.L3:
	andl	$4095, %edx
	subq	%rdx, %rsp
	testq	%rdx, %rdx
	jne	.L26
.L4:
	testl	%ecx, %ecx
	jle	.L16
	movq	$0, -72(%rbp)
	movq	%rsp, %r14
	xorl	%r13d, %r13d
	xorl	%ebx, %ebx
	movq	$0, -88(%rbp)
	xorl	%r12d, %r12d
	leaq	.LC1(%rip), %r15
	movq	$0, -80(%rbp)
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L6:
	cmpb	$65, %al
	je	.L8
	cmpb	$82, %al
	jne	.L27
	addq	$1, -72(%rbp)
.L7:
	addl	$1, %r12d
	addq	$11, %r14
	cmpl	%r12d, -60(%rbp)
	jle	.L5
.L14:
	movq	%r14, %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movzbl	(%r14), %eax
	cmpb	$77, %al
	jne	.L6
	addq	$1, -80(%rbp)
	addl	$1, %r12d
	addq	$11, %r14
	cmpl	%r12d, -60(%rbp)
	jg	.L14
.L5:
	movq	-80(%rbp), %rsi
	movq	-88(%rbp), %r8
	leaq	0(%r13,%rbx), %rcx
	movq	-72(%rbp), %rdi
	movq	%rsi, %rax
	imulq	%r8, %rax
	leaq	(%rbx,%rdi), %rdx
	addq	%r13, %rdx
	imulq	%rax, %rdx
	movq	%rdi, %rax
	imulq	%rsi, %rax
	imulq	%rbx, %rsi
	imulq	%rcx, %rax
	movq	%rsi, %r12
	leaq	.LC2(%rip), %rsi
	imulq	%r13, %r12
	addq	%rax, %rdx
	movq	%rdi, %rax
	imulq	%r8, %rax
	imulq	%rbx, %r8
	addq	%r12, %rdx
	imulq	%rdi, %rbx
	movl	$1, %edi
	imulq	%rcx, %rax
	imulq	%r13, %rbx
	addq	%rax, %rdx
	movq	%r8, %rax
	imulq	%r13, %rax
	addq	%rax, %rdx
	xorl	%eax, %eax
	addq	%rbx, %rdx
	call	__printf_chk@PLT
	movq	-56(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L28
	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
.L27:
	.cfi_restore_state
	cmpb	$67, %al
	jne	.L29
	addq	$1, %rbx
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L8:
	addq	$1, -88(%rbp)
	jmp	.L7
.L29:
	cmpb	$72, %al
	jne	.L7
	addq	$1, %r13
	jmp	.L7
.L26:
	orq	$0, -8(%rsp,%rdx)
	jmp	.L4
.L16:
	movq	$0, -72(%rbp)
	xorl	%r13d, %r13d
	xorl	%ebx, %ebx
	movq	$0, -88(%rbp)
	movq	$0, -80(%rbp)
	jmp	.L5
.L28:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:

#include<stdio.h>
int main(){
  int n,i;
  long long m=0,a=0,r=0,c=0,h=0,count=0;
  scanf("%d",&n);
  char s[n+1][11];
  for(i=0;i<n;i++){
    scanf("%*c%s",s[i]);
    if(s[i][0]=='M') m++;
    if(s[i][0]=='A') a++;
    if(s[i][0]=='R') r++;
    if(s[i][0]=='C') c++;
    if(s[i][0]=='H') h++;
  }
  count=m*a*(r+c+h)+m*r*(c+h)+m*c*h+a*r*(c+h)+a*c*h+r*c*h;
  printf("%lld\n",count);
  return 0;
}

5
MASHIKE
RUMOI
OBIRA
OROBAH
HOROKANAI
 5
CHOKUD@I
RNG
MAKOTO
AOKI
RINGO
 4
ZY
ZZZ
Z
ZZZZZZZZZZ
 5
DHOKUD@I
RNG
MAKOTO
AOKI
RINGN
 5
I@DUKOGE
HNR
MTAOKP
AINK
RINGN
 5
MASHIKE
IOMUR
OBIRA
OROBAH
HOROKANAI
 5
CHOKUD@I
RNG
MAKOTO
AOKI
RINGN
 4
ZY
ZZY
Z
ZZZZZZZZZZ
 5
MASHIKE
IOMUR
ARIBO
OROBAH
HOROKANAI
 4
ZY
YZZ
Z
ZZZZZZZZZZ

1
 7
 0
 2
 4
 0
 7
 0
 1
 0

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

```c
#include<stdio.h>
int main(){
  int n,i;
  long long m=0,a=0,r=0,c=0,h=0,count=0;
  scanf("%d",&n);
  char s[n+1][11];
  for(i=0;i<n;i++){
    scanf("%*c%s",s[i]);
    if(s[i][0]=='M') m++;
    if(s[i][0]=='A') a++;
    if(s[i][0]=='R') r++;
    if(s[i][0]=='C') c++;
    if(s[i][0]=='H') h++;
  }
  count=m*a*(r+c+h)+m*r*(c+h)+m*c*h+a*r*(c+h)+a*c*h+r*c*h;
  printf("%lld\n",count);
  return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%*c%s"
.LC2:
	.string	"%lld\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	$88, %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	$0, -120(%rbp)
	movq	$0, -112(%rbp)
	movq	$0, -104(%rbp)
	movq	$0, -96(%rbp)
	movq	$0, -88(%rbp)
	movq	$0, -80(%rbp)
	leaq	-128(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-128(%rbp), %eax
	leal	1(%rax), %ecx
	movslq	%ecx, %rax
	subq	$1, %rax
	movq	%rax, -72(%rbp)
	movslq	%ecx, %rax
	movq	%rax, %r14
	movl	$0, %r15d
	imulq	$88, %r15, %rdx
	imulq	$0, %r14, %rax
	leaq	(%rdx,%rax), %rsi
	movl	$88, %eax
	mulq	%r14
	addq	%rdx, %rsi
	movq	%rsi, %rdx
	movslq	%ecx, %rax
	movq	%rax, %r12
	movl	$0, %r13d
	imulq	$88, %r13, %rdx
	imulq	$0, %r12, %rax
	leaq	(%rdx,%rax), %rsi
	movl	$88, %eax
	mulq	%r12
	addq	%rdx, %rsi
	movq	%rsi, %rdx
	movslq	%ecx, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rax, %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %edi
	movl	$0, %edx
	divq	%rdi
	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, -64(%rbp)
	movl	$0, -124(%rbp)
	jmp	.L5
.L11:
	movl	-124(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	movq	-64(%rbp), %rdx
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	-64(%rbp), %rcx
	movl	-124(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movzbl	(%rax), %eax
	cmpb	$77, %al
	jne	.L6
	addq	$1, -120(%rbp)
.L6:
	movq	-64(%rbp), %rcx
	movl	-124(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movzbl	(%rax), %eax
	cmpb	$65, %al
	jne	.L7
	addq	$1, -112(%rbp)
.L7:
	movq	-64(%rbp), %rcx
	movl	-124(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movzbl	(%rax), %eax
	cmpb	$82, %al
	jne	.L8
	addq	$1, -104(%rbp)
.L8:
	movq	-64(%rbp), %rcx
	movl	-124(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movzbl	(%rax), %eax
	cmpb	$67, %al
	jne	.L9
	addq	$1, -96(%rbp)
.L9:
	movq	-64(%rbp), %rcx
	movl	-124(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movzbl	(%rax), %eax
	cmpb	$72, %al
	jne	.L10
	addq	$1, -88(%rbp)
.L10:
	addl	$1, -124(%rbp)
.L5:
	movl	-128(%rbp), %eax
	cmpl	%eax, -124(%rbp)
	jl	.L11
	movq	-120(%rbp), %rax
	imulq	-112(%rbp), %rax
	movq	-104(%rbp), %rcx
	movq	-96(%rbp), %rdx
	addq	%rdx, %rcx
	movq	-88(%rbp), %rdx
	addq	%rcx, %rdx
	imulq	%rdx, %rax
	movq	%rax, %rcx
	movq	-120(%rbp), %rax
	imulq	-104(%rbp), %rax
	movq	-96(%rbp), %rsi
	movq	-88(%rbp), %rdx
	addq	%rsi, %rdx
	imulq	%rdx, %rax
	leaq	(%rcx,%rax), %rdx
	movq	-120(%rbp), %rax
	imulq	-96(%rbp), %rax
	imulq	-88(%rbp), %rax
	leaq	(%rdx,%rax), %rsi
	movq	-112(%rbp), %rax
	imulq	-104(%rbp), %rax
	movq	-96(%rbp), %rcx
	movq	-88(%rbp), %rdx
	addq	%rcx, %rdx
	imulq	%rdx, %rax
	leaq	(%rsi,%rax), %rdx
	movq	-112(%rbp), %rax
	imulq	-96(%rbp), %rax
	imulq	-88(%rbp), %rax
	addq	%rax, %rdx
	movq	-104(%rbp), %rax
	imulq	-96(%rbp), %rax
	imulq	-88(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, -80(%rbp)
	movq	-80(%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	.L13
	call	__stack_chk_fail@PLT
.L13:
	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"
.LC1:
	.string	"%*c%s"
.LC2:
	.string	"%lld\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	$88, %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	$0, -120(%rbp)
	movq	$0, -112(%rbp)
	movq	$0, -104(%rbp)
	movq	$0, -96(%rbp)
	movq	$0, -88(%rbp)
	movq	$0, -80(%rbp)
	leaq	-128(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-128(%rbp), %eax
	leal	1(%rax), %ecx
	movslq	%ecx, %rax
	subq	$1, %rax
	movq	%rax, -72(%rbp)
	movslq	%ecx, %rax
	movq	%rax, %r14
	movl	$0, %r15d
	imulq	$88, %r15, %rdx
	imulq	$0, %r14, %rax
	leaq	(%rdx,%rax), %rsi
	movl	$88, %eax
	mulq	%r14
	addq	%rdx, %rsi
	movq	%rsi, %rdx
	movslq	%ecx, %rax
	movq	%rax, %r12
	movl	$0, %r13d
	imulq	$88, %r13, %rdx
	imulq	$0, %r12, %rax
	leaq	(%rdx,%rax), %rsi
	movl	$88, %eax
	mulq	%r12
	addq	%rdx, %rsi
	movq	%rsi, %rdx
	movslq	%ecx, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rax, %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %edi
	movl	$0, %edx
	divq	%rdi
	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, -64(%rbp)
	movl	$0, -124(%rbp)
	jmp	.L5
.L11:
	movl	-124(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	movq	-64(%rbp), %rdx
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	-64(%rbp), %rcx
	movl	-124(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movzbl	(%rax), %eax
	cmpb	$77, %al
	jne	.L6
	addq	$1, -120(%rbp)
.L6:
	movq	-64(%rbp), %rcx
	movl	-124(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movzbl	(%rax), %eax
	cmpb	$65, %al
	jne	.L7
	addq	$1, -112(%rbp)
.L7:
	movq	-64(%rbp), %rcx
	movl	-124(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movzbl	(%rax), %eax
	cmpb	$82, %al
	jne	.L8
	addq	$1, -104(%rbp)
.L8:
	movq	-64(%rbp), %rcx
	movl	-124(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movzbl	(%rax), %eax
	cmpb	$67, %al
	jne	.L9
	addq	$1, -96(%rbp)
.L9:
	movq	-64(%rbp), %rcx
	movl	-124(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movzbl	(%rax), %eax
	cmpb	$72, %al
	jne	.L10
	addq	$1, -88(%rbp)
.L10:
	addl	$1, -124(%rbp)
.L5:
	movl	-128(%rbp), %eax
	cmpl	%eax, -124(%rbp)
	jl	.L11
	movq	-120(%rbp), %rax
	imulq	-112(%rbp), %rax
	movq	-104(%rbp), %rcx
	movq	-96(%rbp), %rdx
	addq	%rdx, %rcx
	movq	-88(%rbp), %rdx
	addq	%rcx, %rdx
	imulq	%rdx, %rax
	movq	%rax, %rcx
	movq	-120(%rbp), %rax
	imulq	-104(%rbp), %rax
	movq	-96(%rbp), %rsi
	movq	-88(%rbp), %rdx
	addq	%rsi, %rdx
	imulq	%rdx, %rax
	leaq	(%rcx,%rax), %rdx
	movq	-120(%rbp), %rax
	imulq	-96(%rbp), %rax
	imulq	-88(%rbp), %rax
	leaq	(%rdx,%rax), %rsi
	movq	-112(%rbp), %rax
	imulq	-104(%rbp), %rax
	movq	-96(%rbp), %rcx
	movq	-88(%rbp), %rdx
	addq	%rcx, %rdx
	imulq	%rdx, %rax
	leaq	(%rsi,%rax), %rdx
	movq	-112(%rbp), %rax
	imulq	-96(%rbp), %rax
	imulq	-88(%rbp), %rax
	addq	%rax, %rdx
	movq	-104(%rbp), %rax
	imulq	-96(%rbp), %rax
	imulq	-88(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, -80(%rbp)
	movq	-80(%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	.L13
	call	__stack_chk_fail@PLT
.L13:
	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:
