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(void)
{
    long long int sum=0;
    long long int num[5],i,n,j,k,x;
    char name[11];
    for(i=0;i<5;i++) num[i]=0;
    scanf("%lld",&n);
    while(n>0)
    {
        scanf("%s",name);
        if(name[0]=='M') num[0]++;
        else if(name[0]=='A') num[1]++;
        else if(name[0]=='R') num[2]++;
        else if(name[0]=='C') num[3]++;
        else if(name[0]=='H') num[4]++;
        n--;
    }
    for(i=0;i<5;i++)
    {
        x=0;
        if(num[i]==0) continue;
        for(j=i+1;j<5;j++)
            for(k=j+1;k<5;k++)
                x+=num[j]*num[k];
        sum+=x*num[i];
    }
    printf("%lld",sum);
    return 0;
}


```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%lld"
.LC1:
	.string	"%s"
	.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
	subq	$112, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movq	$0, -104(%rbp)
	movq	$0, -96(%rbp)
	jmp	.L2
.L3:
	movq	-96(%rbp), %rax
	movq	$0, -64(%rbp,%rax,8)
	addq	$1, -96(%rbp)
.L2:
	cmpq	$4, -96(%rbp)
	jle	.L3
	leaq	-112(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	jmp	.L4
.L10:
	leaq	-19(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movzbl	-19(%rbp), %eax
	cmpb	$77, %al
	jne	.L5
	movq	-64(%rbp), %rax
	addq	$1, %rax
	movq	%rax, -64(%rbp)
	jmp	.L6
.L5:
	movzbl	-19(%rbp), %eax
	cmpb	$65, %al
	jne	.L7
	movq	-56(%rbp), %rax
	addq	$1, %rax
	movq	%rax, -56(%rbp)
	jmp	.L6
.L7:
	movzbl	-19(%rbp), %eax
	cmpb	$82, %al
	jne	.L8
	movq	-48(%rbp), %rax
	addq	$1, %rax
	movq	%rax, -48(%rbp)
	jmp	.L6
.L8:
	movzbl	-19(%rbp), %eax
	cmpb	$67, %al
	jne	.L9
	movq	-40(%rbp), %rax
	addq	$1, %rax
	movq	%rax, -40(%rbp)
	jmp	.L6
.L9:
	movzbl	-19(%rbp), %eax
	cmpb	$72, %al
	jne	.L6
	movq	-32(%rbp), %rax
	addq	$1, %rax
	movq	%rax, -32(%rbp)
.L6:
	movq	-112(%rbp), %rax
	subq	$1, %rax
	movq	%rax, -112(%rbp)
.L4:
	movq	-112(%rbp), %rax
	testq	%rax, %rax
	jg	.L10
	movq	$0, -96(%rbp)
	jmp	.L11
.L18:
	movq	$0, -72(%rbp)
	movq	-96(%rbp), %rax
	movq	-64(%rbp,%rax,8), %rax
	testq	%rax, %rax
	je	.L21
	movq	-96(%rbp), %rax
	addq	$1, %rax
	movq	%rax, -88(%rbp)
	jmp	.L14
.L17:
	movq	-88(%rbp), %rax
	addq	$1, %rax
	movq	%rax, -80(%rbp)
	jmp	.L15
.L16:
	movq	-88(%rbp), %rax
	movq	-64(%rbp,%rax,8), %rdx
	movq	-80(%rbp), %rax
	movq	-64(%rbp,%rax,8), %rax
	imulq	%rdx, %rax
	addq	%rax, -72(%rbp)
	addq	$1, -80(%rbp)
.L15:
	cmpq	$4, -80(%rbp)
	jle	.L16
	addq	$1, -88(%rbp)
.L14:
	cmpq	$4, -88(%rbp)
	jle	.L17
	movq	-96(%rbp), %rax
	movq	-64(%rbp,%rax,8), %rax
	imulq	-72(%rbp), %rax
	addq	%rax, -104(%rbp)
	jmp	.L13
.L21:
	nop
.L13:
	addq	$1, -96(%rbp)
.L11:
	cmpq	$4, -96(%rbp)
	jle	.L18
	movq	-104(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L20
	call	__stack_chk_fail@PLT
.L20:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:
```

Only output the optimized assembly code. Do not include any other text. Do not write any comments in the assembly code. Wrap the assembly code in ```assembly``` tags.
user
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%lld"
.LC1:
	.string	"%s"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	leaq	.LC0(%rip), %r13
	pxor	%xmm0, %xmm0
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	movq	%r13, %rdi
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	leaq	.LC1(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	xorl	%ebx, %ebx
	subq	$88, %rsp
	.cfi_def_cfa_offset 128
	movq	%fs:40, %rax
	movq	%rax, 72(%rsp)
	xorl	%eax, %eax
	leaq	8(%rsp), %rsi
	movaps	%xmm0, 16(%rsp)
	leaq	61(%rsp), %r12
	movq	$0, 48(%rsp)
	movaps	%xmm0, 32(%rsp)
	call	__isoc99_scanf@PLT
	cmpq	$0, 8(%rsp)
	jg	.L2
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L6:
	cmpb	$65, %al
	je	.L29
	cmpb	$82, %al
	je	.L30
	cmpb	$67, %al
	je	.L31
	cmpb	$72, %al
	jne	.L7
	addq	$1, 48(%rsp)
	.p2align 4,,10
	.p2align 3
.L7:
	movq	8(%rsp), %rax
	subq	$1, %rax
	movq	%rax, 8(%rsp)
	testq	%rax, %rax
	jle	.L11
.L2:
	movq	%r12, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movzbl	61(%rsp), %eax
	cmpb	$77, %al
	jne	.L6
	addq	$1, %rbx
	movq	%rbx, 16(%rsp)
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L29:
	addq	$1, 24(%rsp)
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L30:
	addq	$1, 32(%rsp)
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L11:
	movq	16(%rsp), %rdx
	movq	24(%rsp), %rsi
	movq	32(%rsp), %rax
	testq	%rdx, %rdx
	je	.L3
	movq	40(%rsp), %rcx
	movq	48(%rsp), %r8
	movq	%rax, %r9
	imulq	%rcx, %r9
	leaq	(%rcx,%rax), %rdi
	addq	%r8, %rdi
	imulq	%r8, %rcx
	imulq	%rsi, %rdi
	addq	%rdi, %r9
	movq	%rax, %rdi
	imulq	%r8, %rdi
	addq	%r9, %rdi
	addq	%rdi, %rcx
	imulq	%rcx, %rdx
.L3:
	testq	%rsi, %rsi
	je	.L4
	movq	40(%rsp), %rcx
	movq	48(%rsp), %r8
	leaq	(%r8,%rcx), %rdi
	imulq	%rax, %rdi
	imulq	%r8, %rcx
	addq	%rdi, %rcx
	imulq	%rsi, %rcx
	addq	%rcx, %rdx
.L4:
	testq	%rax, %rax
	je	.L5
	movq	40(%rsp), %rcx
	imulq	48(%rsp), %rcx
	imulq	%rcx, %rax
	addq	%rax, %rdx
.L5:
	xorl	%eax, %eax
	movq	%r13, %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	72(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L32
	addq	$88, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L31:
	.cfi_restore_state
	addq	$1, 40(%rsp)
	jmp	.L7
.L32:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:

rule
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%lld"
.LC1:
	.string	"%s"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	leaq	.LC0(%rip), %r13
	pxor	%xmm0, %xmm0
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	movq	%r13, %rdi
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	leaq	.LC1(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	xorl	%ebx, %ebx
	subq	$88, %rsp
	.cfi_def_cfa_offset 128
	movq	%fs:40, %rax
	movq	%rax, 72(%rsp)
	xorl	%eax, %eax
	leaq	8(%rsp), %rsi
	movaps	%xmm0, 16(%rsp)
	leaq	61(%rsp), %r12
	movq	$0, 48(%rsp)
	movaps	%xmm0, 32(%rsp)
	call	__isoc99_scanf@PLT
	cmpq	$0, 8(%rsp)
	jg	.L2
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L6:
	cmpb	$65, %al
	je	.L29
	cmpb	$82, %al
	je	.L30
	cmpb	$67, %al
	je	.L31
	cmpb	$72, %al
	jne	.L7
	addq	$1, 48(%rsp)
	.p2align 4,,10
	.p2align 3
.L7:
	movq	8(%rsp), %rax
	subq	$1, %rax
	movq	%rax, 8(%rsp)
	testq	%rax, %rax
	jle	.L11
.L2:
	movq	%r12, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movzbl	61(%rsp), %eax
	cmpb	$77, %al
	jne	.L6
	addq	$1, %rbx
	movq	%rbx, 16(%rsp)
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L29:
	addq	$1, 24(%rsp)
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L30:
	addq	$1, 32(%rsp)
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L11:
	movq	16(%rsp), %rdx
	movq	24(%rsp), %rsi
	movq	32(%rsp), %rax
	testq	%rdx, %rdx
	je	.L3
	movq	40(%rsp), %rcx
	movq	48(%rsp), %r8
	movq	%rax, %r9
	imulq	%rcx, %r9
	leaq	(%rcx,%rax), %rdi
	addq	%r8, %rdi
	imulq	%r8, %rcx
	imulq	%rsi, %rdi
	addq	%rdi, %r9
	movq	%rax, %rdi
	imulq	%r8, %rdi
	addq	%r9, %rdi
	addq	%rdi, %rcx
	imulq	%rcx, %rdx
.L3:
	testq	%rsi, %rsi
	je	.L4
	movq	40(%rsp), %rcx
	movq	48(%rsp), %r8
	leaq	(%r8,%rcx), %rdi
	imulq	%rax, %rdi
	imulq	%r8, %rcx
	addq	%rdi, %rcx
	imulq	%rsi, %rcx
	addq	%rcx, %rdx
.L4:
	testq	%rax, %rax
	je	.L5
	movq	40(%rsp), %rcx
	imulq	48(%rsp), %rcx
	imulq	%rcx, %rax
	addq	%rax, %rdx
.L5:
	xorl	%eax, %eax
	movq	%r13, %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	72(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L32
	addq	$88, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L31:
	.cfi_restore_state
	addq	$1, 40(%rsp)
	jmp	.L7
.L32:
	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(void)
{
    long long int sum=0;
    long long int num[5],i,n,j,k,x;
    char name[11];
    for(i=0;i<5;i++) num[i]=0;
    scanf("%lld",&n);
    while(n>0)
    {
        scanf("%s",name);
        if(name[0]=='M') num[0]++;
        else if(name[0]=='A') num[1]++;
        else if(name[0]=='R') num[2]++;
        else if(name[0]=='C') num[3]++;
        else if(name[0]=='H') num[4]++;
        n--;
    }
    for(i=0;i<5;i++)
    {
        x=0;
        if(num[i]==0) continue;
        for(j=i+1;j<5;j++)
            for(k=j+1;k<5;k++)
                x+=num[j]*num[k];
        sum+=x*num[i];
    }
    printf("%lld",sum);
    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(void)
{
    long long int sum=0;
    long long int num[5],i,n,j,k,x;
    char name[11];
    for(i=0;i<5;i++) num[i]=0;
    scanf("%lld",&n);
    while(n>0)
    {
        scanf("%s",name);
        if(name[0]=='M') num[0]++;
        else if(name[0]=='A') num[1]++;
        else if(name[0]=='R') num[2]++;
        else if(name[0]=='C') num[3]++;
        else if(name[0]=='H') num[4]++;
        n--;
    }
    for(i=0;i<5;i++)
    {
        x=0;
        if(num[i]==0) continue;
        for(j=i+1;j<5;j++)
            for(k=j+1;k<5;k++)
                x+=num[j]*num[k];
        sum+=x*num[i];
    }
    printf("%lld",sum);
    return 0;
}


```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%lld"
.LC1:
	.string	"%s"
	.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
	subq	$112, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movq	$0, -104(%rbp)
	movq	$0, -96(%rbp)
	jmp	.L2
.L3:
	movq	-96(%rbp), %rax
	movq	$0, -64(%rbp,%rax,8)
	addq	$1, -96(%rbp)
.L2:
	cmpq	$4, -96(%rbp)
	jle	.L3
	leaq	-112(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	jmp	.L4
.L10:
	leaq	-19(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movzbl	-19(%rbp), %eax
	cmpb	$77, %al
	jne	.L5
	movq	-64(%rbp), %rax
	addq	$1, %rax
	movq	%rax, -64(%rbp)
	jmp	.L6
.L5:
	movzbl	-19(%rbp), %eax
	cmpb	$65, %al
	jne	.L7
	movq	-56(%rbp), %rax
	addq	$1, %rax
	movq	%rax, -56(%rbp)
	jmp	.L6
.L7:
	movzbl	-19(%rbp), %eax
	cmpb	$82, %al
	jne	.L8
	movq	-48(%rbp), %rax
	addq	$1, %rax
	movq	%rax, -48(%rbp)
	jmp	.L6
.L8:
	movzbl	-19(%rbp), %eax
	cmpb	$67, %al
	jne	.L9
	movq	-40(%rbp), %rax
	addq	$1, %rax
	movq	%rax, -40(%rbp)
	jmp	.L6
.L9:
	movzbl	-19(%rbp), %eax
	cmpb	$72, %al
	jne	.L6
	movq	-32(%rbp), %rax
	addq	$1, %rax
	movq	%rax, -32(%rbp)
.L6:
	movq	-112(%rbp), %rax
	subq	$1, %rax
	movq	%rax, -112(%rbp)
.L4:
	movq	-112(%rbp), %rax
	testq	%rax, %rax
	jg	.L10
	movq	$0, -96(%rbp)
	jmp	.L11
.L18:
	movq	$0, -72(%rbp)
	movq	-96(%rbp), %rax
	movq	-64(%rbp,%rax,8), %rax
	testq	%rax, %rax
	je	.L21
	movq	-96(%rbp), %rax
	addq	$1, %rax
	movq	%rax, -88(%rbp)
	jmp	.L14
.L17:
	movq	-88(%rbp), %rax
	addq	$1, %rax
	movq	%rax, -80(%rbp)
	jmp	.L15
.L16:
	movq	-88(%rbp), %rax
	movq	-64(%rbp,%rax,8), %rdx
	movq	-80(%rbp), %rax
	movq	-64(%rbp,%rax,8), %rax
	imulq	%rdx, %rax
	addq	%rax, -72(%rbp)
	addq	$1, -80(%rbp)
.L15:
	cmpq	$4, -80(%rbp)
	jle	.L16
	addq	$1, -88(%rbp)
.L14:
	cmpq	$4, -88(%rbp)
	jle	.L17
	movq	-96(%rbp), %rax
	movq	-64(%rbp,%rax,8), %rax
	imulq	-72(%rbp), %rax
	addq	%rax, -104(%rbp)
	jmp	.L13
.L21:
	nop
.L13:
	addq	$1, -96(%rbp)
.L11:
	cmpq	$4, -96(%rbp)
	jle	.L18
	movq	-104(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L20
	call	__stack_chk_fail@PLT
.L20:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:
```

Only output the optimized assembly code. Do not include any other text. Do not write any comments in the assembly code. Wrap the assembly code in ```assembly``` tags.
train
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%lld"
.LC1:
	.string	"%s"
	.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
	subq	$112, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movq	$0, -104(%rbp)
	movq	$0, -96(%rbp)
	jmp	.L2
.L3:
	movq	-96(%rbp), %rax
	movq	$0, -64(%rbp,%rax,8)
	addq	$1, -96(%rbp)
.L2:
	cmpq	$4, -96(%rbp)
	jle	.L3
	leaq	-112(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	jmp	.L4
.L10:
	leaq	-19(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movzbl	-19(%rbp), %eax
	cmpb	$77, %al
	jne	.L5
	movq	-64(%rbp), %rax
	addq	$1, %rax
	movq	%rax, -64(%rbp)
	jmp	.L6
.L5:
	movzbl	-19(%rbp), %eax
	cmpb	$65, %al
	jne	.L7
	movq	-56(%rbp), %rax
	addq	$1, %rax
	movq	%rax, -56(%rbp)
	jmp	.L6
.L7:
	movzbl	-19(%rbp), %eax
	cmpb	$82, %al
	jne	.L8
	movq	-48(%rbp), %rax
	addq	$1, %rax
	movq	%rax, -48(%rbp)
	jmp	.L6
.L8:
	movzbl	-19(%rbp), %eax
	cmpb	$67, %al
	jne	.L9
	movq	-40(%rbp), %rax
	addq	$1, %rax
	movq	%rax, -40(%rbp)
	jmp	.L6
.L9:
	movzbl	-19(%rbp), %eax
	cmpb	$72, %al
	jne	.L6
	movq	-32(%rbp), %rax
	addq	$1, %rax
	movq	%rax, -32(%rbp)
.L6:
	movq	-112(%rbp), %rax
	subq	$1, %rax
	movq	%rax, -112(%rbp)
.L4:
	movq	-112(%rbp), %rax
	testq	%rax, %rax
	jg	.L10
	movq	$0, -96(%rbp)
	jmp	.L11
.L18:
	movq	$0, -72(%rbp)
	movq	-96(%rbp), %rax
	movq	-64(%rbp,%rax,8), %rax
	testq	%rax, %rax
	je	.L21
	movq	-96(%rbp), %rax
	addq	$1, %rax
	movq	%rax, -88(%rbp)
	jmp	.L14
.L17:
	movq	-88(%rbp), %rax
	addq	$1, %rax
	movq	%rax, -80(%rbp)
	jmp	.L15
.L16:
	movq	-88(%rbp), %rax
	movq	-64(%rbp,%rax,8), %rdx
	movq	-80(%rbp), %rax
	movq	-64(%rbp,%rax,8), %rax
	imulq	%rdx, %rax
	addq	%rax, -72(%rbp)
	addq	$1, -80(%rbp)
.L15:
	cmpq	$4, -80(%rbp)
	jle	.L16
	addq	$1, -88(%rbp)
.L14:
	cmpq	$4, -88(%rbp)
	jle	.L17
	movq	-96(%rbp), %rax
	movq	-64(%rbp,%rax,8), %rax
	imulq	-72(%rbp), %rax
	addq	%rax, -104(%rbp)
	jmp	.L13
.L21:
	nop
.L13:
	addq	$1, -96(%rbp)
.L11:
	cmpq	$4, -96(%rbp)
	jle	.L18
	movq	-104(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L20
	call	__stack_chk_fail@PLT
.L20:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:
