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>
#include <stdlib.h>

int main()
{
	int i, N;
	char S[100001][11] = {};
	scanf("%d", &N);
	for (i = 1; i <= N; i++) scanf("%s", S[i]);

	int j, k;
	long long count[5] = {};
	char s[6] = "MARCH";
	for (i = 1; i <= N; i++) {
		for (j = 0; j < 5; j++) if (S[i][0] == s[j]) count[j]++;
	}
	
	long long sum = 0;
	for (i = 0; i < 5; i++) {
		for (j = i + 1; j < 5; j++) {
			for (k = j + 1; k < 5; k++) sum += count[i] * count[j] * count[k];
		}
	}
	
	printf("%lld\n", sum);
	fflush(stdout);
	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:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	leaq	-1097728(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$2384, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-1100032(%rbp), %rax
	movl	$1100011, %edx
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	leaq	-1100104(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$1, -1100100(%rbp)
	jmp	.L2
.L3:
	leaq	-1100032(%rbp), %rcx
	movl	-1100100(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -1100100(%rbp)
.L2:
	movl	-1100104(%rbp), %eax
	cmpl	%eax, -1100100(%rbp)
	jle	.L3
	movq	$0, -1100080(%rbp)
	movq	$0, -1100072(%rbp)
	movq	$0, -1100064(%rbp)
	movq	$0, -1100056(%rbp)
	movq	$0, -1100048(%rbp)
	movl	$1129464141, -14(%rbp)
	movw	$72, -10(%rbp)
	movl	$1, -1100100(%rbp)
	jmp	.L4
.L8:
	movl	$0, -1100096(%rbp)
	jmp	.L5
.L7:
	movl	-1100100(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rbp, %rax
	subq	$1100032, %rax
	movzbl	(%rax), %edx
	movl	-1100096(%rbp), %eax
	cltq
	movzbl	-14(%rbp,%rax), %eax
	cmpb	%al, %dl
	jne	.L6
	movl	-1100096(%rbp), %eax
	cltq
	movq	-1100080(%rbp,%rax,8), %rax
	leaq	1(%rax), %rdx
	movl	-1100096(%rbp), %eax
	cltq
	movq	%rdx, -1100080(%rbp,%rax,8)
.L6:
	addl	$1, -1100096(%rbp)
.L5:
	cmpl	$4, -1100096(%rbp)
	jle	.L7
	addl	$1, -1100100(%rbp)
.L4:
	movl	-1100104(%rbp), %eax
	cmpl	%eax, -1100100(%rbp)
	jle	.L8
	movq	$0, -1100088(%rbp)
	movl	$0, -1100100(%rbp)
	jmp	.L9
.L14:
	movl	-1100100(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -1100096(%rbp)
	jmp	.L10
.L13:
	movl	-1100096(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -1100092(%rbp)
	jmp	.L11
.L12:
	movl	-1100100(%rbp), %eax
	cltq
	movq	-1100080(%rbp,%rax,8), %rdx
	movl	-1100096(%rbp), %eax
	cltq
	movq	-1100080(%rbp,%rax,8), %rax
	imulq	%rax, %rdx
	movl	-1100092(%rbp), %eax
	cltq
	movq	-1100080(%rbp,%rax,8), %rax
	imulq	%rdx, %rax
	addq	%rax, -1100088(%rbp)
	addl	$1, -1100092(%rbp)
.L11:
	cmpl	$4, -1100092(%rbp)
	jle	.L12
	addl	$1, -1100096(%rbp)
.L10:
	cmpl	$4, -1100096(%rbp)
	jle	.L13
	addl	$1, -1100100(%rbp)
.L9:
	cmpl	$4, -1100100(%rbp)
	jle	.L14
	movq	-1100088(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movq	stdout(%rip), %rax
	movq	%rax, %rdi
	call	fflush@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L16
	call	__stack_chk_fail@PLT
.L16:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.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:
.LFB39:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	leaq	-1097728(%rsp), %r11
	.cfi_def_cfa 11, 1097768
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$2376, %rsp
	.cfi_def_cfa_offset 1100144
	movl	$1100011, %edx
	xorl	%esi, %esi
	movq	%fs:40, %rax
	movq	%rax, 1100088(%rsp)
	xorl	%eax, %eax
	leaq	64(%rsp), %rdi
	call	memset@PLT
	leaq	12(%rsp), %rsi
	leaq	.LC0(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	testl	%eax, %eax
	jle	.L2
	leaq	75(%rsp), %rbx
	movl	$1, %ebp
	leaq	.LC1(%rip), %r13
	movq	%rbx, %r12
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%r12, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addl	$1, %ebp
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	addq	$11, %r12
	cmpl	%ebp, %eax
	jge	.L3
	movq	$0, 48(%rsp)
	pxor	%xmm0, %xmm0
	movaps	%xmm0, 16(%rsp)
	movaps	%xmm0, 32(%rsp)
	testl	%eax, %eax
	jle	.L5
	subl	$1, %eax
	xorl	%r10d, %r10d
	xorl	%ecx, %ecx
	xorl	%r11d, %r11d
	leaq	(%rax,%rax,4), %rdx
	xorl	%esi, %esi
	xorl	%ebp, %ebp
	xorl	%edi, %edi
	leaq	(%rax,%rdx,2), %rax
	xorl	%r12d, %r12d
	xorl	%r9d, %r9d
	xorl	%r13d, %r13d
	leaq	86(%rsp,%rax), %rdx
	xorl	%r8d, %r8d
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L6:
	cmpb	$65, %al
	je	.L8
	cmpb	$82, %al
	jne	.L9
	addq	$1, %rdi
	movl	$1, %ebp
.L7:
	addq	$11, %rbx
	cmpq	%rbx, %rdx
	je	.L48
.L11:
	movzbl	(%rbx), %eax
	cmpb	$77, %al
	jne	.L6
	addq	$11, %rbx
	addq	$1, %r8
	movl	$1, %r13d
	cmpq	%rbx, %rdx
	jne	.L11
.L48:
	testb	%r10b, %r10b
	je	.L12
	movq	%rcx, 48(%rsp)
.L12:
	testb	%r11b, %r11b
	je	.L13
	movq	%rsi, 40(%rsp)
.L13:
	testb	%bpl, %bpl
	je	.L14
	movq	%rdi, 32(%rsp)
.L14:
	testb	%r12b, %r12b
	je	.L15
	movq	%r9, 24(%rsp)
.L15:
	testb	%r13b, %r13b
	je	.L5
	movq	%r8, 16(%rsp)
.L5:
	xorl	%edi, %edi
	movl	$1, %r9d
	xorl	%r8d, %r8d
	movl	$1, %edx
.L17:
	leal	1(%rdx), %ecx
	cmpl	$4, %edx
	je	.L18
	.p2align 4,,10
	.p2align 3
.L49:
	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	.L19
	movslq	%esi, %rdx
	movq	16(%rsp,%rdx,8), %rbx
	imulq	%rax, %rbx
	addq	%rbx, %r8
	cmpl	$3, %esi
	jne	.L19
	imulq	48(%rsp), %rax
	addq	%rax, %r8
.L19:
	movl	%ecx, %edx
	leal	1(%rdx), %ecx
	cmpl	$4, %edx
	jne	.L49
.L18:
	leal	1(%r9), %edx
	cmpl	$4, %r9d
	je	.L50
	movl	%r9d, %edi
	movl	%edx, %r9d
	jmp	.L17
.L9:
	cmpb	$67, %al
	jne	.L10
	addq	$1, %rsi
	movl	$1, %r11d
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L8:
	addq	$1, %r9
	movl	$1, %r12d
	jmp	.L7
.L10:
	cmpb	$72, %al
	jne	.L7
	addq	$1, %rcx
	movl	$1, %r10d
	jmp	.L7
.L50:
	movl	$1, %edi
	xorl	%eax, %eax
	movq	%r8, %rdx
	leaq	.LC2(%rip), %rsi
	call	__printf_chk@PLT
	movq	stdout(%rip), %rdi
	call	fflush@PLT
	movq	1100088(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L51
	addq	$1100104, %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
.L2:
	.cfi_restore_state
	leaq	16(%rsp), %rdi
	movl	$10, %ecx
	xorl	%eax, %eax
	rep stosl
	jmp	.L5
.L51:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE39:
	.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:
.LFB39:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	leaq	-1097728(%rsp), %r11
	.cfi_def_cfa 11, 1097768
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$2376, %rsp
	.cfi_def_cfa_offset 1100144
	movl	$1100011, %edx
	xorl	%esi, %esi
	movq	%fs:40, %rax
	movq	%rax, 1100088(%rsp)
	xorl	%eax, %eax
	leaq	64(%rsp), %rdi
	call	memset@PLT
	leaq	12(%rsp), %rsi
	leaq	.LC0(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	testl	%eax, %eax
	jle	.L2
	leaq	75(%rsp), %rbx
	movl	$1, %ebp
	leaq	.LC1(%rip), %r13
	movq	%rbx, %r12
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%r12, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addl	$1, %ebp
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	addq	$11, %r12
	cmpl	%ebp, %eax
	jge	.L3
	movq	$0, 48(%rsp)
	pxor	%xmm0, %xmm0
	movaps	%xmm0, 16(%rsp)
	movaps	%xmm0, 32(%rsp)
	testl	%eax, %eax
	jle	.L5
	subl	$1, %eax
	xorl	%r10d, %r10d
	xorl	%ecx, %ecx
	xorl	%r11d, %r11d
	leaq	(%rax,%rax,4), %rdx
	xorl	%esi, %esi
	xorl	%ebp, %ebp
	xorl	%edi, %edi
	leaq	(%rax,%rdx,2), %rax
	xorl	%r12d, %r12d
	xorl	%r9d, %r9d
	xorl	%r13d, %r13d
	leaq	86(%rsp,%rax), %rdx
	xorl	%r8d, %r8d
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L6:
	cmpb	$65, %al
	je	.L8
	cmpb	$82, %al
	jne	.L9
	addq	$1, %rdi
	movl	$1, %ebp
.L7:
	addq	$11, %rbx
	cmpq	%rbx, %rdx
	je	.L48
.L11:
	movzbl	(%rbx), %eax
	cmpb	$77, %al
	jne	.L6
	addq	$11, %rbx
	addq	$1, %r8
	movl	$1, %r13d
	cmpq	%rbx, %rdx
	jne	.L11
.L48:
	testb	%r10b, %r10b
	je	.L12
	movq	%rcx, 48(%rsp)
.L12:
	testb	%r11b, %r11b
	je	.L13
	movq	%rsi, 40(%rsp)
.L13:
	testb	%bpl, %bpl
	je	.L14
	movq	%rdi, 32(%rsp)
.L14:
	testb	%r12b, %r12b
	je	.L15
	movq	%r9, 24(%rsp)
.L15:
	testb	%r13b, %r13b
	je	.L5
	movq	%r8, 16(%rsp)
.L5:
	xorl	%edi, %edi
	movl	$1, %r9d
	xorl	%r8d, %r8d
	movl	$1, %edx
.L17:
	leal	1(%rdx), %ecx
	cmpl	$4, %edx
	je	.L18
	.p2align 4,,10
	.p2align 3
.L49:
	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	.L19
	movslq	%esi, %rdx
	movq	16(%rsp,%rdx,8), %rbx
	imulq	%rax, %rbx
	addq	%rbx, %r8
	cmpl	$3, %esi
	jne	.L19
	imulq	48(%rsp), %rax
	addq	%rax, %r8
.L19:
	movl	%ecx, %edx
	leal	1(%rdx), %ecx
	cmpl	$4, %edx
	jne	.L49
.L18:
	leal	1(%r9), %edx
	cmpl	$4, %r9d
	je	.L50
	movl	%r9d, %edi
	movl	%edx, %r9d
	jmp	.L17
.L9:
	cmpb	$67, %al
	jne	.L10
	addq	$1, %rsi
	movl	$1, %r11d
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L8:
	addq	$1, %r9
	movl	$1, %r12d
	jmp	.L7
.L10:
	cmpb	$72, %al
	jne	.L7
	addq	$1, %rcx
	movl	$1, %r10d
	jmp	.L7
.L50:
	movl	$1, %edi
	xorl	%eax, %eax
	movq	%r8, %rdx
	leaq	.LC2(%rip), %rsi
	call	__printf_chk@PLT
	movq	stdout(%rip), %rdi
	call	fflush@PLT
	movq	1100088(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L51
	addq	$1100104, %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
.L2:
	.cfi_restore_state
	leaq	16(%rsp), %rdi
	movl	$10, %ecx
	xorl	%eax, %eax
	rep stosl
	jmp	.L5
.L51:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE39:
	.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>
#include <stdlib.h>

int main()
{
	int i, N;
	char S[100001][11] = {};
	scanf("%d", &N);
	for (i = 1; i <= N; i++) scanf("%s", S[i]);

	int j, k;
	long long count[5] = {};
	char s[6] = "MARCH";
	for (i = 1; i <= N; i++) {
		for (j = 0; j < 5; j++) if (S[i][0] == s[j]) count[j]++;
	}
	
	long long sum = 0;
	for (i = 0; i < 5; i++) {
		for (j = i + 1; j < 5; j++) {
			for (k = j + 1; k < 5; k++) sum += count[i] * count[j] * count[k];
		}
	}
	
	printf("%lld\n", sum);
	fflush(stdout);
	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>
#include <stdlib.h>

int main()
{
	int i, N;
	char S[100001][11] = {};
	scanf("%d", &N);
	for (i = 1; i <= N; i++) scanf("%s", S[i]);

	int j, k;
	long long count[5] = {};
	char s[6] = "MARCH";
	for (i = 1; i <= N; i++) {
		for (j = 0; j < 5; j++) if (S[i][0] == s[j]) count[j]++;
	}
	
	long long sum = 0;
	for (i = 0; i < 5; i++) {
		for (j = i + 1; j < 5; j++) {
			for (k = j + 1; k < 5; k++) sum += count[i] * count[j] * count[k];
		}
	}
	
	printf("%lld\n", sum);
	fflush(stdout);
	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:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	leaq	-1097728(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$2384, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-1100032(%rbp), %rax
	movl	$1100011, %edx
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	leaq	-1100104(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$1, -1100100(%rbp)
	jmp	.L2
.L3:
	leaq	-1100032(%rbp), %rcx
	movl	-1100100(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -1100100(%rbp)
.L2:
	movl	-1100104(%rbp), %eax
	cmpl	%eax, -1100100(%rbp)
	jle	.L3
	movq	$0, -1100080(%rbp)
	movq	$0, -1100072(%rbp)
	movq	$0, -1100064(%rbp)
	movq	$0, -1100056(%rbp)
	movq	$0, -1100048(%rbp)
	movl	$1129464141, -14(%rbp)
	movw	$72, -10(%rbp)
	movl	$1, -1100100(%rbp)
	jmp	.L4
.L8:
	movl	$0, -1100096(%rbp)
	jmp	.L5
.L7:
	movl	-1100100(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rbp, %rax
	subq	$1100032, %rax
	movzbl	(%rax), %edx
	movl	-1100096(%rbp), %eax
	cltq
	movzbl	-14(%rbp,%rax), %eax
	cmpb	%al, %dl
	jne	.L6
	movl	-1100096(%rbp), %eax
	cltq
	movq	-1100080(%rbp,%rax,8), %rax
	leaq	1(%rax), %rdx
	movl	-1100096(%rbp), %eax
	cltq
	movq	%rdx, -1100080(%rbp,%rax,8)
.L6:
	addl	$1, -1100096(%rbp)
.L5:
	cmpl	$4, -1100096(%rbp)
	jle	.L7
	addl	$1, -1100100(%rbp)
.L4:
	movl	-1100104(%rbp), %eax
	cmpl	%eax, -1100100(%rbp)
	jle	.L8
	movq	$0, -1100088(%rbp)
	movl	$0, -1100100(%rbp)
	jmp	.L9
.L14:
	movl	-1100100(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -1100096(%rbp)
	jmp	.L10
.L13:
	movl	-1100096(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -1100092(%rbp)
	jmp	.L11
.L12:
	movl	-1100100(%rbp), %eax
	cltq
	movq	-1100080(%rbp,%rax,8), %rdx
	movl	-1100096(%rbp), %eax
	cltq
	movq	-1100080(%rbp,%rax,8), %rax
	imulq	%rax, %rdx
	movl	-1100092(%rbp), %eax
	cltq
	movq	-1100080(%rbp,%rax,8), %rax
	imulq	%rdx, %rax
	addq	%rax, -1100088(%rbp)
	addl	$1, -1100092(%rbp)
.L11:
	cmpl	$4, -1100092(%rbp)
	jle	.L12
	addl	$1, -1100096(%rbp)
.L10:
	cmpl	$4, -1100096(%rbp)
	jle	.L13
	addl	$1, -1100100(%rbp)
.L9:
	cmpl	$4, -1100100(%rbp)
	jle	.L14
	movq	-1100088(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movq	stdout(%rip), %rax
	movq	%rax, %rdi
	call	fflush@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L16
	call	__stack_chk_fail@PLT
.L16:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.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:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	leaq	-1097728(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$2384, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-1100032(%rbp), %rax
	movl	$1100011, %edx
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	leaq	-1100104(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$1, -1100100(%rbp)
	jmp	.L2
.L3:
	leaq	-1100032(%rbp), %rcx
	movl	-1100100(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -1100100(%rbp)
.L2:
	movl	-1100104(%rbp), %eax
	cmpl	%eax, -1100100(%rbp)
	jle	.L3
	movq	$0, -1100080(%rbp)
	movq	$0, -1100072(%rbp)
	movq	$0, -1100064(%rbp)
	movq	$0, -1100056(%rbp)
	movq	$0, -1100048(%rbp)
	movl	$1129464141, -14(%rbp)
	movw	$72, -10(%rbp)
	movl	$1, -1100100(%rbp)
	jmp	.L4
.L8:
	movl	$0, -1100096(%rbp)
	jmp	.L5
.L7:
	movl	-1100100(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rbp, %rax
	subq	$1100032, %rax
	movzbl	(%rax), %edx
	movl	-1100096(%rbp), %eax
	cltq
	movzbl	-14(%rbp,%rax), %eax
	cmpb	%al, %dl
	jne	.L6
	movl	-1100096(%rbp), %eax
	cltq
	movq	-1100080(%rbp,%rax,8), %rax
	leaq	1(%rax), %rdx
	movl	-1100096(%rbp), %eax
	cltq
	movq	%rdx, -1100080(%rbp,%rax,8)
.L6:
	addl	$1, -1100096(%rbp)
.L5:
	cmpl	$4, -1100096(%rbp)
	jle	.L7
	addl	$1, -1100100(%rbp)
.L4:
	movl	-1100104(%rbp), %eax
	cmpl	%eax, -1100100(%rbp)
	jle	.L8
	movq	$0, -1100088(%rbp)
	movl	$0, -1100100(%rbp)
	jmp	.L9
.L14:
	movl	-1100100(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -1100096(%rbp)
	jmp	.L10
.L13:
	movl	-1100096(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -1100092(%rbp)
	jmp	.L11
.L12:
	movl	-1100100(%rbp), %eax
	cltq
	movq	-1100080(%rbp,%rax,8), %rdx
	movl	-1100096(%rbp), %eax
	cltq
	movq	-1100080(%rbp,%rax,8), %rax
	imulq	%rax, %rdx
	movl	-1100092(%rbp), %eax
	cltq
	movq	-1100080(%rbp,%rax,8), %rax
	imulq	%rdx, %rax
	addq	%rax, -1100088(%rbp)
	addl	$1, -1100092(%rbp)
.L11:
	cmpl	$4, -1100092(%rbp)
	jle	.L12
	addl	$1, -1100096(%rbp)
.L10:
	cmpl	$4, -1100096(%rbp)
	jle	.L13
	addl	$1, -1100100(%rbp)
.L9:
	cmpl	$4, -1100100(%rbp)
	jle	.L14
	movq	-1100088(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movq	stdout(%rip), %rax
	movq	%rax, %rdi
	call	fflush@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L16
	call	__stack_chk_fail@PLT
.L16:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.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:
