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 long num[] = {0,0,0,0,0};
	char name[11];
	scanf ("%d", &N);
	for (int i=0; i<N; i++) {
		scanf ("%s", name);
		switch (name[0]) {
			case 'M':
				num[0] ++;
				break;
			case 'A':
				num[1] ++;
				break;
			case 'R':
				num[2] ++;
				break;
			case 'C':
				num[3] ++;
				break;
			case 'H':
				num[4] ++;
				break;
		}
	}
	long long sum = 0;
	for (int i=0; i<5; i++)
		for (int j=i+1; j<5; j++)
			for (int k=j+1; k<5; k++)
				sum += num[i] * num[j] * num[k];
	printf ("%lld\n", sum);
	return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%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
	subq	$96, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movq	$0, -64(%rbp)
	movq	$0, -56(%rbp)
	movq	$0, -48(%rbp)
	movq	$0, -40(%rbp)
	movq	$0, -32(%rbp)
	leaq	-92(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -88(%rbp)
	jmp	.L2
.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
	movsbl	%al, %eax
	subl	$65, %eax
	cmpl	$17, %eax
	ja	.L3
	movl	%eax, %eax
	leaq	0(,%rax,4), %rdx
	leaq	.L5(%rip), %rax
	movl	(%rdx,%rax), %eax
	cltq
	leaq	.L5(%rip), %rdx
	addq	%rdx, %rax
	notrack jmp	*%rax
	.section	.rodata
	.align 4
	.align 4
.L5:
	.long	.L9-.L5
	.long	.L3-.L5
	.long	.L8-.L5
	.long	.L3-.L5
	.long	.L3-.L5
	.long	.L3-.L5
	.long	.L3-.L5
	.long	.L7-.L5
	.long	.L3-.L5
	.long	.L3-.L5
	.long	.L3-.L5
	.long	.L3-.L5
	.long	.L6-.L5
	.long	.L3-.L5
	.long	.L3-.L5
	.long	.L3-.L5
	.long	.L3-.L5
	.long	.L4-.L5
	.text
.L6:
	movq	-64(%rbp), %rax
	addq	$1, %rax
	movq	%rax, -64(%rbp)
	jmp	.L3
.L9:
	movq	-56(%rbp), %rax
	addq	$1, %rax
	movq	%rax, -56(%rbp)
	jmp	.L3
.L4:
	movq	-48(%rbp), %rax
	addq	$1, %rax
	movq	%rax, -48(%rbp)
	jmp	.L3
.L8:
	movq	-40(%rbp), %rax
	addq	$1, %rax
	movq	%rax, -40(%rbp)
	jmp	.L3
.L7:
	movq	-32(%rbp), %rax
	addq	$1, %rax
	movq	%rax, -32(%rbp)
	nop
.L3:
	addl	$1, -88(%rbp)
.L2:
	movl	-92(%rbp), %eax
	cmpl	%eax, -88(%rbp)
	jl	.L10
	movq	$0, -72(%rbp)
	movl	$0, -84(%rbp)
	jmp	.L11
.L16:
	movl	-84(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -80(%rbp)
	jmp	.L12
.L15:
	movl	-80(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -76(%rbp)
	jmp	.L13
.L14:
	movl	-84(%rbp), %eax
	cltq
	movq	-64(%rbp,%rax,8), %rdx
	movl	-80(%rbp), %eax
	cltq
	movq	-64(%rbp,%rax,8), %rax
	imulq	%rax, %rdx
	movl	-76(%rbp), %eax
	cltq
	movq	-64(%rbp,%rax,8), %rax
	imulq	%rdx, %rax
	addq	%rax, -72(%rbp)
	addl	$1, -76(%rbp)
.L13:
	cmpl	$4, -76(%rbp)
	jle	.L14
	addl	$1, -80(%rbp)
.L12:
	cmpl	$4, -80(%rbp)
	jle	.L15
	addl	$1, -84(%rbp)
.L11:
	cmpl	$4, -84(%rbp)
	jle	.L16
	movq	-72(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L18
	call	__stack_chk_fail@PLT
.L18:
	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	"%d"
.LC1:
	.string	"%s"
.LC2:
	.string	"%lld\n"
	.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
	pxor	%xmm0, %xmm0
	leaq	.LC0(%rip), %rdi
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	leaq	.LC1(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	leaq	.L6(%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	12(%rsp), %rsi
	movaps	%xmm0, 16(%rsp)
	leaq	61(%rsp), %r13
	movq	$0, 48(%rsp)
	movaps	%xmm0, 32(%rsp)
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	testl	%eax, %eax
	jle	.L11
	.p2align 4,,10
	.p2align 3
.L2:
	movq	%r13, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movzbl	61(%rsp), %eax
	subl	$65, %eax
	cmpb	$17, %al
	ja	.L4
	movzbl	%al, %eax
	movslq	0(%rbp,%rax,4), %rax
	addq	%rbp, %rax
	notrack jmp	*%rax
	.section	.rodata
	.align 4
	.align 4
.L6:
	.long	.L10-.L6
	.long	.L4-.L6
	.long	.L9-.L6
	.long	.L4-.L6
	.long	.L4-.L6
	.long	.L4-.L6
	.long	.L4-.L6
	.long	.L8-.L6
	.long	.L4-.L6
	.long	.L4-.L6
	.long	.L4-.L6
	.long	.L4-.L6
	.long	.L7-.L6
	.long	.L4-.L6
	.long	.L4-.L6
	.long	.L4-.L6
	.long	.L4-.L6
	.long	.L5-.L6
	.section	.text.startup
.L7:
	addq	$1, 16(%rsp)
	.p2align 4,,10
	.p2align 3
.L4:
	addl	$1, %ebx
	cmpl	%ebx, 12(%rsp)
	jg	.L2
.L11:
	xorl	%edi, %edi
	movl	$1, %r9d
	movl	$1, %edx
	xorl	%r8d, %r8d
.L3:
	leal	1(%rdx), %ecx
	cmpl	$4, %edx
	je	.L12
	.p2align 4,,10
	.p2align 3
.L29:
	movslq	%edx, %rsi
	movslq	%edi, %rax
	movq	16(%rsp,%rax,8), %rax
	imulq	16(%rsp,%rsi,8), %rax
	movslq	%ecx, %rsi
	movq	16(%rsp,%rsi,8), %rbx
	leal	2(%rdx), %esi
	imulq	%rax, %rbx
	addq	%rbx, %r8
	cmpl	$3, %edx
	je	.L13
	movslq	%esi, %rdx
	movq	16(%rsp,%rdx,8), %rbx
	imulq	%rax, %rbx
	addq	%rbx, %r8
	cmpl	$3, %esi
	jne	.L13
	imulq	48(%rsp), %rax
	addq	%rax, %r8
.L13:
	movl	%ecx, %edx
	leal	1(%rdx), %ecx
	cmpl	$4, %edx
	jne	.L29
.L12:
	leal	1(%r9), %edx
	cmpl	$4, %r9d
	je	.L30
	movl	%r9d, %edi
	movl	%edx, %r9d
	jmp	.L3
.L5:
	addq	$1, 32(%rsp)
	addl	$1, %ebx
	cmpl	%ebx, 12(%rsp)
	jg	.L2
	jmp	.L11
.L8:
	addq	$1, 48(%rsp)
	addl	$1, %ebx
	cmpl	%ebx, 12(%rsp)
	jg	.L2
	jmp	.L11
.L9:
	addq	$1, 40(%rsp)
	addl	$1, %ebx
	cmpl	%ebx, 12(%rsp)
	jg	.L2
	jmp	.L11
.L10:
	addq	$1, 24(%rsp)
	addl	$1, %ebx
	cmpl	%ebx, 12(%rsp)
	jg	.L2
	jmp	.L11
.L30:
	xorl	%eax, %eax
	movq	%r8, %rdx
	movl	$1, %edi
	leaq	.LC2(%rip), %rsi
	call	__printf_chk@PLT
	movq	72(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L31
	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
.L31:
	.cfi_restore_state
	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	"%s"
.LC2:
	.string	"%lld\n"
	.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
	pxor	%xmm0, %xmm0
	leaq	.LC0(%rip), %rdi
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	leaq	.LC1(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	leaq	.L6(%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	12(%rsp), %rsi
	movaps	%xmm0, 16(%rsp)
	leaq	61(%rsp), %r13
	movq	$0, 48(%rsp)
	movaps	%xmm0, 32(%rsp)
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	testl	%eax, %eax
	jle	.L11
	.p2align 4,,10
	.p2align 3
.L2:
	movq	%r13, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movzbl	61(%rsp), %eax
	subl	$65, %eax
	cmpb	$17, %al
	ja	.L4
	movzbl	%al, %eax
	movslq	0(%rbp,%rax,4), %rax
	addq	%rbp, %rax
	notrack jmp	*%rax
	.section	.rodata
	.align 4
	.align 4
.L6:
	.long	.L10-.L6
	.long	.L4-.L6
	.long	.L9-.L6
	.long	.L4-.L6
	.long	.L4-.L6
	.long	.L4-.L6
	.long	.L4-.L6
	.long	.L8-.L6
	.long	.L4-.L6
	.long	.L4-.L6
	.long	.L4-.L6
	.long	.L4-.L6
	.long	.L7-.L6
	.long	.L4-.L6
	.long	.L4-.L6
	.long	.L4-.L6
	.long	.L4-.L6
	.long	.L5-.L6
	.section	.text.startup
.L7:
	addq	$1, 16(%rsp)
	.p2align 4,,10
	.p2align 3
.L4:
	addl	$1, %ebx
	cmpl	%ebx, 12(%rsp)
	jg	.L2
.L11:
	xorl	%edi, %edi
	movl	$1, %r9d
	movl	$1, %edx
	xorl	%r8d, %r8d
.L3:
	leal	1(%rdx), %ecx
	cmpl	$4, %edx
	je	.L12
	.p2align 4,,10
	.p2align 3
.L29:
	movslq	%edx, %rsi
	movslq	%edi, %rax
	movq	16(%rsp,%rax,8), %rax
	imulq	16(%rsp,%rsi,8), %rax
	movslq	%ecx, %rsi
	movq	16(%rsp,%rsi,8), %rbx
	leal	2(%rdx), %esi
	imulq	%rax, %rbx
	addq	%rbx, %r8
	cmpl	$3, %edx
	je	.L13
	movslq	%esi, %rdx
	movq	16(%rsp,%rdx,8), %rbx
	imulq	%rax, %rbx
	addq	%rbx, %r8
	cmpl	$3, %esi
	jne	.L13
	imulq	48(%rsp), %rax
	addq	%rax, %r8
.L13:
	movl	%ecx, %edx
	leal	1(%rdx), %ecx
	cmpl	$4, %edx
	jne	.L29
.L12:
	leal	1(%r9), %edx
	cmpl	$4, %r9d
	je	.L30
	movl	%r9d, %edi
	movl	%edx, %r9d
	jmp	.L3
.L5:
	addq	$1, 32(%rsp)
	addl	$1, %ebx
	cmpl	%ebx, 12(%rsp)
	jg	.L2
	jmp	.L11
.L8:
	addq	$1, 48(%rsp)
	addl	$1, %ebx
	cmpl	%ebx, 12(%rsp)
	jg	.L2
	jmp	.L11
.L9:
	addq	$1, 40(%rsp)
	addl	$1, %ebx
	cmpl	%ebx, 12(%rsp)
	jg	.L2
	jmp	.L11
.L10:
	addq	$1, 24(%rsp)
	addl	$1, %ebx
	cmpl	%ebx, 12(%rsp)
	jg	.L2
	jmp	.L11
.L30:
	xorl	%eax, %eax
	movq	%r8, %rdx
	movl	$1, %edi
	leaq	.LC2(%rip), %rsi
	call	__printf_chk@PLT
	movq	72(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L31
	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
.L31:
	.cfi_restore_state
	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 long num[] = {0,0,0,0,0};
	char name[11];
	scanf ("%d", &N);
	for (int i=0; i<N; i++) {
		scanf ("%s", name);
		switch (name[0]) {
			case 'M':
				num[0] ++;
				break;
			case 'A':
				num[1] ++;
				break;
			case 'R':
				num[2] ++;
				break;
			case 'C':
				num[3] ++;
				break;
			case 'H':
				num[4] ++;
				break;
		}
	}
	long long sum = 0;
	for (int i=0; i<5; i++)
		for (int j=i+1; j<5; j++)
			for (int k=j+1; k<5; k++)
				sum += num[i] * num[j] * num[k];
	printf ("%lld\n", 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 () {
	int N;
	long long num[] = {0,0,0,0,0};
	char name[11];
	scanf ("%d", &N);
	for (int i=0; i<N; i++) {
		scanf ("%s", name);
		switch (name[0]) {
			case 'M':
				num[0] ++;
				break;
			case 'A':
				num[1] ++;
				break;
			case 'R':
				num[2] ++;
				break;
			case 'C':
				num[3] ++;
				break;
			case 'H':
				num[4] ++;
				break;
		}
	}
	long long sum = 0;
	for (int i=0; i<5; i++)
		for (int j=i+1; j<5; j++)
			for (int k=j+1; k<5; k++)
				sum += num[i] * num[j] * num[k];
	printf ("%lld\n", sum);
	return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%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
	subq	$96, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movq	$0, -64(%rbp)
	movq	$0, -56(%rbp)
	movq	$0, -48(%rbp)
	movq	$0, -40(%rbp)
	movq	$0, -32(%rbp)
	leaq	-92(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -88(%rbp)
	jmp	.L2
.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
	movsbl	%al, %eax
	subl	$65, %eax
	cmpl	$17, %eax
	ja	.L3
	movl	%eax, %eax
	leaq	0(,%rax,4), %rdx
	leaq	.L5(%rip), %rax
	movl	(%rdx,%rax), %eax
	cltq
	leaq	.L5(%rip), %rdx
	addq	%rdx, %rax
	notrack jmp	*%rax
	.section	.rodata
	.align 4
	.align 4
.L5:
	.long	.L9-.L5
	.long	.L3-.L5
	.long	.L8-.L5
	.long	.L3-.L5
	.long	.L3-.L5
	.long	.L3-.L5
	.long	.L3-.L5
	.long	.L7-.L5
	.long	.L3-.L5
	.long	.L3-.L5
	.long	.L3-.L5
	.long	.L3-.L5
	.long	.L6-.L5
	.long	.L3-.L5
	.long	.L3-.L5
	.long	.L3-.L5
	.long	.L3-.L5
	.long	.L4-.L5
	.text
.L6:
	movq	-64(%rbp), %rax
	addq	$1, %rax
	movq	%rax, -64(%rbp)
	jmp	.L3
.L9:
	movq	-56(%rbp), %rax
	addq	$1, %rax
	movq	%rax, -56(%rbp)
	jmp	.L3
.L4:
	movq	-48(%rbp), %rax
	addq	$1, %rax
	movq	%rax, -48(%rbp)
	jmp	.L3
.L8:
	movq	-40(%rbp), %rax
	addq	$1, %rax
	movq	%rax, -40(%rbp)
	jmp	.L3
.L7:
	movq	-32(%rbp), %rax
	addq	$1, %rax
	movq	%rax, -32(%rbp)
	nop
.L3:
	addl	$1, -88(%rbp)
.L2:
	movl	-92(%rbp), %eax
	cmpl	%eax, -88(%rbp)
	jl	.L10
	movq	$0, -72(%rbp)
	movl	$0, -84(%rbp)
	jmp	.L11
.L16:
	movl	-84(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -80(%rbp)
	jmp	.L12
.L15:
	movl	-80(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -76(%rbp)
	jmp	.L13
.L14:
	movl	-84(%rbp), %eax
	cltq
	movq	-64(%rbp,%rax,8), %rdx
	movl	-80(%rbp), %eax
	cltq
	movq	-64(%rbp,%rax,8), %rax
	imulq	%rax, %rdx
	movl	-76(%rbp), %eax
	cltq
	movq	-64(%rbp,%rax,8), %rax
	imulq	%rdx, %rax
	addq	%rax, -72(%rbp)
	addl	$1, -76(%rbp)
.L13:
	cmpl	$4, -76(%rbp)
	jle	.L14
	addl	$1, -80(%rbp)
.L12:
	cmpl	$4, -80(%rbp)
	jle	.L15
	addl	$1, -84(%rbp)
.L11:
	cmpl	$4, -84(%rbp)
	jle	.L16
	movq	-72(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L18
	call	__stack_chk_fail@PLT
.L18:
	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	"%d"
.LC1:
	.string	"%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
	subq	$96, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movq	$0, -64(%rbp)
	movq	$0, -56(%rbp)
	movq	$0, -48(%rbp)
	movq	$0, -40(%rbp)
	movq	$0, -32(%rbp)
	leaq	-92(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -88(%rbp)
	jmp	.L2
.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
	movsbl	%al, %eax
	subl	$65, %eax
	cmpl	$17, %eax
	ja	.L3
	movl	%eax, %eax
	leaq	0(,%rax,4), %rdx
	leaq	.L5(%rip), %rax
	movl	(%rdx,%rax), %eax
	cltq
	leaq	.L5(%rip), %rdx
	addq	%rdx, %rax
	notrack jmp	*%rax
	.section	.rodata
	.align 4
	.align 4
.L5:
	.long	.L9-.L5
	.long	.L3-.L5
	.long	.L8-.L5
	.long	.L3-.L5
	.long	.L3-.L5
	.long	.L3-.L5
	.long	.L3-.L5
	.long	.L7-.L5
	.long	.L3-.L5
	.long	.L3-.L5
	.long	.L3-.L5
	.long	.L3-.L5
	.long	.L6-.L5
	.long	.L3-.L5
	.long	.L3-.L5
	.long	.L3-.L5
	.long	.L3-.L5
	.long	.L4-.L5
	.text
.L6:
	movq	-64(%rbp), %rax
	addq	$1, %rax
	movq	%rax, -64(%rbp)
	jmp	.L3
.L9:
	movq	-56(%rbp), %rax
	addq	$1, %rax
	movq	%rax, -56(%rbp)
	jmp	.L3
.L4:
	movq	-48(%rbp), %rax
	addq	$1, %rax
	movq	%rax, -48(%rbp)
	jmp	.L3
.L8:
	movq	-40(%rbp), %rax
	addq	$1, %rax
	movq	%rax, -40(%rbp)
	jmp	.L3
.L7:
	movq	-32(%rbp), %rax
	addq	$1, %rax
	movq	%rax, -32(%rbp)
	nop
.L3:
	addl	$1, -88(%rbp)
.L2:
	movl	-92(%rbp), %eax
	cmpl	%eax, -88(%rbp)
	jl	.L10
	movq	$0, -72(%rbp)
	movl	$0, -84(%rbp)
	jmp	.L11
.L16:
	movl	-84(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -80(%rbp)
	jmp	.L12
.L15:
	movl	-80(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -76(%rbp)
	jmp	.L13
.L14:
	movl	-84(%rbp), %eax
	cltq
	movq	-64(%rbp,%rax,8), %rdx
	movl	-80(%rbp), %eax
	cltq
	movq	-64(%rbp,%rax,8), %rax
	imulq	%rax, %rdx
	movl	-76(%rbp), %eax
	cltq
	movq	-64(%rbp,%rax,8), %rax
	imulq	%rdx, %rax
	addq	%rax, -72(%rbp)
	addl	$1, -76(%rbp)
.L13:
	cmpl	$4, -76(%rbp)
	jle	.L14
	addl	$1, -80(%rbp)
.L12:
	cmpl	$4, -80(%rbp)
	jle	.L15
	addl	$1, -84(%rbp)
.L11:
	cmpl	$4, -84(%rbp)
	jle	.L16
	movq	-72(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L18
	call	__stack_chk_fail@PLT
.L18:
	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:
