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>

typedef struct {
    char name[6];
}STR;

int main(void)
{
    int H, W;
    int i, j, k;
    STR A[26][26] = {0};

    scanf("%d %d ", &H, &W);

    for (i = 0; i < H; i++) {
        for (j = 0; j < W; j++) {
            for (k = 0; k < 6; k++) {
                A[i][j].name[k] = getchar();
            }
        }
    }

    for (i = 0; i < H; i++) {
        for (j = 0; j < W; j++) {
            if (A[i][j].name[0] == 's' && A[i][j].name[1] == 'n' && A[i][j].name[2] == 'u'
             && A[i][j].name[3] == 'k' && A[i][j].name[4] == 'e') {
                printf("%C%d",'A'+j, i+1);
            }
        }
    }

    return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d %d "
.LC1:
	.string	"%C%d"
	.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	$4096, %rsp
	orq	$0, (%rsp)
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-4064(%rbp), %rdx
	movl	$0, %eax
	movl	$507, %ecx
	movq	%rdx, %rdi
	rep stosq
	leaq	-4080(%rbp), %rdx
	leaq	-4084(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -4076(%rbp)
	jmp	.L2
.L7:
	movl	$0, -4072(%rbp)
	jmp	.L3
.L6:
	movl	$0, -4068(%rbp)
	jmp	.L4
.L5:
	call	getchar@PLT
	movl	%eax, %ecx
	movl	-4068(%rbp), %eax
	movslq	%eax, %rsi
	movl	-4076(%rbp), %eax
	cltq
	movl	-4072(%rbp), %edx
	movslq	%edx, %rdx
	imulq	$156, %rax, %rdi
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdi, %rax
	addq	%rbp, %rax
	addq	%rsi, %rax
	subq	$4064, %rax
	movb	%cl, (%rax)
	addl	$1, -4068(%rbp)
.L4:
	cmpl	$5, -4068(%rbp)
	jle	.L5
	addl	$1, -4072(%rbp)
.L3:
	movl	-4080(%rbp), %eax
	cmpl	%eax, -4072(%rbp)
	jl	.L6
	addl	$1, -4076(%rbp)
.L2:
	movl	-4084(%rbp), %eax
	cmpl	%eax, -4076(%rbp)
	jl	.L7
	movl	$0, -4076(%rbp)
	jmp	.L8
.L12:
	movl	$0, -4072(%rbp)
	jmp	.L9
.L11:
	movl	-4072(%rbp), %eax
	movslq	%eax, %rdx
	movl	-4076(%rbp), %eax
	movslq	%eax, %rcx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	imulq	$156, %rcx, %rdx
	addq	%rdx, %rax
	addq	%rbp, %rax
	subq	$4064, %rax
	movzbl	(%rax), %eax
	cmpb	$115, %al
	jne	.L10
	movl	-4072(%rbp), %eax
	movslq	%eax, %rdx
	movl	-4076(%rbp), %eax
	movslq	%eax, %rcx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	imulq	$156, %rcx, %rdx
	addq	%rdx, %rax
	addq	%rbp, %rax
	subq	$4063, %rax
	movzbl	(%rax), %eax
	cmpb	$110, %al
	jne	.L10
	movl	-4072(%rbp), %eax
	movslq	%eax, %rdx
	movl	-4076(%rbp), %eax
	movslq	%eax, %rcx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	imulq	$156, %rcx, %rdx
	addq	%rdx, %rax
	addq	%rbp, %rax
	subq	$4062, %rax
	movzbl	(%rax), %eax
	cmpb	$117, %al
	jne	.L10
	movl	-4072(%rbp), %eax
	movslq	%eax, %rdx
	movl	-4076(%rbp), %eax
	movslq	%eax, %rcx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	imulq	$156, %rcx, %rdx
	addq	%rdx, %rax
	addq	%rbp, %rax
	subq	$4061, %rax
	movzbl	(%rax), %eax
	cmpb	$107, %al
	jne	.L10
	movl	-4072(%rbp), %eax
	movslq	%eax, %rdx
	movl	-4076(%rbp), %eax
	movslq	%eax, %rcx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	imulq	$156, %rcx, %rdx
	addq	%rdx, %rax
	addq	%rbp, %rax
	subq	$4060, %rax
	movzbl	(%rax), %eax
	cmpb	$101, %al
	jne	.L10
	movl	-4076(%rbp), %eax
	leal	1(%rax), %edx
	movl	-4072(%rbp), %eax
	addl	$65, %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L10:
	addl	$1, -4072(%rbp)
.L9:
	movl	-4080(%rbp), %eax
	cmpl	%eax, -4072(%rbp)
	jl	.L11
	addl	$1, -4076(%rbp)
.L8:
	movl	-4084(%rbp), %eax
	cmpl	%eax, -4076(%rbp)
	jl	.L12
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L14
	call	__stack_chk_fail@PLT
.L14:
	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 %d "
.LC1:
	.string	"%C%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	movl	$507, %ecx
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$4088, %rsp
	.cfi_def_cfa_offset 4144
	movq	%fs:40, %rax
	movq	%rax, 4072(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %r13
	leaq	12(%rsp), %rdx
	movq	%r13, %rdi
	leaq	8(%rsp), %rsi
	rep stosq
	leaq	.LC0(%rip), %rdi
	call	__isoc99_scanf@PLT
	movl	8(%rsp), %eax
	testl	%eax, %eax
	jle	.L2
	movl	12(%rsp), %eax
	xorl	%r15d, %r15d
	xorl	%r14d, %r14d
	testl	%eax, %eax
	jle	.L8
	.p2align 4,,10
	.p2align 3
.L10:
	leaq	0(%r13,%r15), %rbp
	xorl	%r12d, %r12d
	.p2align 4,,10
	.p2align 3
.L5:
	xorl	%ebx, %ebx
	.p2align 4,,10
	.p2align 3
.L4:
	movq	stdin(%rip), %rdi
	call	getc@PLT
	movb	%al, 0(%rbp,%rbx)
	addq	$1, %rbx
	cmpq	$6, %rbx
	jne	.L4
	movl	12(%rsp), %eax
	addl	$1, %r12d
	addq	$6, %rbp
	cmpl	%r12d, %eax
	jg	.L5
	movl	8(%rsp), %edx
	addl	$1, %r14d
	cmpl	%r14d, %edx
	jle	.L25
	addq	$156, %r15
	testl	%eax, %eax
	jg	.L10
.L8:
	movl	$1, %r12d
	leaq	.LC1(%rip), %r14
	.p2align 4,,10
	.p2align 3
.L15:
	testl	%eax, %eax
	jle	.L2
	movq	%r13, %rbx
	xorl	%ebp, %ebp
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L12:
	addl	$1, %ebp
	addq	$6, %rbx
	cmpl	%ebp, %eax
	jle	.L26
.L13:
	cmpb	$115, (%rbx)
	jne	.L12
	cmpb	$110, 1(%rbx)
	jne	.L12
	cmpb	$117, 2(%rbx)
	jne	.L12
	cmpb	$107, 3(%rbx)
	jne	.L12
	cmpb	$101, 4(%rbx)
	jne	.L12
	leal	65(%rbp), %edx
	movl	%r12d, %ecx
	movq	%r14, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	12(%rsp), %eax
	jmp	.L12
.L25:
	testl	%edx, %edx
	jg	.L8
.L2:
	movq	4072(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L27
	addq	$4088, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L26:
	.cfi_restore_state
	cmpl	%r12d, 8(%rsp)
	jle	.L2
	addl	$1, %r12d
	addq	$156, %r13
	jmp	.L15
.L27:
	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 %d "
.LC1:
	.string	"%C%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	movl	$507, %ecx
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$4088, %rsp
	.cfi_def_cfa_offset 4144
	movq	%fs:40, %rax
	movq	%rax, 4072(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %r13
	leaq	12(%rsp), %rdx
	movq	%r13, %rdi
	leaq	8(%rsp), %rsi
	rep stosq
	leaq	.LC0(%rip), %rdi
	call	__isoc99_scanf@PLT
	movl	8(%rsp), %eax
	testl	%eax, %eax
	jle	.L2
	movl	12(%rsp), %eax
	xorl	%r15d, %r15d
	xorl	%r14d, %r14d
	testl	%eax, %eax
	jle	.L8
	.p2align 4,,10
	.p2align 3
.L10:
	leaq	0(%r13,%r15), %rbp
	xorl	%r12d, %r12d
	.p2align 4,,10
	.p2align 3
.L5:
	xorl	%ebx, %ebx
	.p2align 4,,10
	.p2align 3
.L4:
	movq	stdin(%rip), %rdi
	call	getc@PLT
	movb	%al, 0(%rbp,%rbx)
	addq	$1, %rbx
	cmpq	$6, %rbx
	jne	.L4
	movl	12(%rsp), %eax
	addl	$1, %r12d
	addq	$6, %rbp
	cmpl	%r12d, %eax
	jg	.L5
	movl	8(%rsp), %edx
	addl	$1, %r14d
	cmpl	%r14d, %edx
	jle	.L25
	addq	$156, %r15
	testl	%eax, %eax
	jg	.L10
.L8:
	movl	$1, %r12d
	leaq	.LC1(%rip), %r14
	.p2align 4,,10
	.p2align 3
.L15:
	testl	%eax, %eax
	jle	.L2
	movq	%r13, %rbx
	xorl	%ebp, %ebp
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L12:
	addl	$1, %ebp
	addq	$6, %rbx
	cmpl	%ebp, %eax
	jle	.L26
.L13:
	cmpb	$115, (%rbx)
	jne	.L12
	cmpb	$110, 1(%rbx)
	jne	.L12
	cmpb	$117, 2(%rbx)
	jne	.L12
	cmpb	$107, 3(%rbx)
	jne	.L12
	cmpb	$101, 4(%rbx)
	jne	.L12
	leal	65(%rbp), %edx
	movl	%r12d, %ecx
	movq	%r14, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	12(%rsp), %eax
	jmp	.L12
.L25:
	testl	%edx, %edx
	jg	.L8
.L2:
	movq	4072(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L27
	addq	$4088, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L26:
	.cfi_restore_state
	cmpl	%r12d, 8(%rsp)
	jle	.L2
	addl	$1, %r12d
	addq	$156, %r13
	jmp	.L15
.L27:
	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>

typedef struct {
    char name[6];
}STR;

int main(void)
{
    int H, W;
    int i, j, k;
    STR A[26][26] = {0};

    scanf("%d %d ", &H, &W);

    for (i = 0; i < H; i++) {
        for (j = 0; j < W; j++) {
            for (k = 0; k < 6; k++) {
                A[i][j].name[k] = getchar();
            }
        }
    }

    for (i = 0; i < H; i++) {
        for (j = 0; j < W; j++) {
            if (A[i][j].name[0] == 's' && A[i][j].name[1] == 'n' && A[i][j].name[2] == 'u'
             && A[i][j].name[3] == 'k' && A[i][j].name[4] == 'e') {
                printf("%C%d",'A'+j, i+1);
            }
        }
    }

    return 0;
}

15 10
snake snake snake snake snake snake snake snake snake snake
snake snake snake snake snake snake snake snake snake snake
snake snake snake snake snake snake snake snake snake snake
snake snake snake snake snake snake snake snake snake snake
snake snake snake snake snake snake snake snake snake snake
snake snake snake snake snake snake snake snuke snake snake
snake snake snake snake snake snake snake snake snake snake
snake snake snake snake snake snake snake snake snake snake
snake snake snake snake snake snake snake snake snake snake
snake snake snake snake snake snake snake snake snake snake
snake snake snake snake snake snake snake snake snake snake
snake snake snake snake snake snake snake snake snake snake
snake snake snake snake snake snake snake snake snake snake
snake snake snake snake snake snake snake snake snake snake
snake snake snake snake snake snake snake snake snake snake

H6
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>

typedef struct {
    char name[6];
}STR;

int main(void)
{
    int H, W;
    int i, j, k;
    STR A[26][26] = {0};

    scanf("%d %d ", &H, &W);

    for (i = 0; i < H; i++) {
        for (j = 0; j < W; j++) {
            for (k = 0; k < 6; k++) {
                A[i][j].name[k] = getchar();
            }
        }
    }

    for (i = 0; i < H; i++) {
        for (j = 0; j < W; j++) {
            if (A[i][j].name[0] == 's' && A[i][j].name[1] == 'n' && A[i][j].name[2] == 'u'
             && A[i][j].name[3] == 'k' && A[i][j].name[4] == 'e') {
                printf("%C%d",'A'+j, i+1);
            }
        }
    }

    return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d %d "
.LC1:
	.string	"%C%d"
	.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	$4096, %rsp
	orq	$0, (%rsp)
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-4064(%rbp), %rdx
	movl	$0, %eax
	movl	$507, %ecx
	movq	%rdx, %rdi
	rep stosq
	leaq	-4080(%rbp), %rdx
	leaq	-4084(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -4076(%rbp)
	jmp	.L2
.L7:
	movl	$0, -4072(%rbp)
	jmp	.L3
.L6:
	movl	$0, -4068(%rbp)
	jmp	.L4
.L5:
	call	getchar@PLT
	movl	%eax, %ecx
	movl	-4068(%rbp), %eax
	movslq	%eax, %rsi
	movl	-4076(%rbp), %eax
	cltq
	movl	-4072(%rbp), %edx
	movslq	%edx, %rdx
	imulq	$156, %rax, %rdi
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdi, %rax
	addq	%rbp, %rax
	addq	%rsi, %rax
	subq	$4064, %rax
	movb	%cl, (%rax)
	addl	$1, -4068(%rbp)
.L4:
	cmpl	$5, -4068(%rbp)
	jle	.L5
	addl	$1, -4072(%rbp)
.L3:
	movl	-4080(%rbp), %eax
	cmpl	%eax, -4072(%rbp)
	jl	.L6
	addl	$1, -4076(%rbp)
.L2:
	movl	-4084(%rbp), %eax
	cmpl	%eax, -4076(%rbp)
	jl	.L7
	movl	$0, -4076(%rbp)
	jmp	.L8
.L12:
	movl	$0, -4072(%rbp)
	jmp	.L9
.L11:
	movl	-4072(%rbp), %eax
	movslq	%eax, %rdx
	movl	-4076(%rbp), %eax
	movslq	%eax, %rcx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	imulq	$156, %rcx, %rdx
	addq	%rdx, %rax
	addq	%rbp, %rax
	subq	$4064, %rax
	movzbl	(%rax), %eax
	cmpb	$115, %al
	jne	.L10
	movl	-4072(%rbp), %eax
	movslq	%eax, %rdx
	movl	-4076(%rbp), %eax
	movslq	%eax, %rcx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	imulq	$156, %rcx, %rdx
	addq	%rdx, %rax
	addq	%rbp, %rax
	subq	$4063, %rax
	movzbl	(%rax), %eax
	cmpb	$110, %al
	jne	.L10
	movl	-4072(%rbp), %eax
	movslq	%eax, %rdx
	movl	-4076(%rbp), %eax
	movslq	%eax, %rcx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	imulq	$156, %rcx, %rdx
	addq	%rdx, %rax
	addq	%rbp, %rax
	subq	$4062, %rax
	movzbl	(%rax), %eax
	cmpb	$117, %al
	jne	.L10
	movl	-4072(%rbp), %eax
	movslq	%eax, %rdx
	movl	-4076(%rbp), %eax
	movslq	%eax, %rcx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	imulq	$156, %rcx, %rdx
	addq	%rdx, %rax
	addq	%rbp, %rax
	subq	$4061, %rax
	movzbl	(%rax), %eax
	cmpb	$107, %al
	jne	.L10
	movl	-4072(%rbp), %eax
	movslq	%eax, %rdx
	movl	-4076(%rbp), %eax
	movslq	%eax, %rcx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	imulq	$156, %rcx, %rdx
	addq	%rdx, %rax
	addq	%rbp, %rax
	subq	$4060, %rax
	movzbl	(%rax), %eax
	cmpb	$101, %al
	jne	.L10
	movl	-4076(%rbp), %eax
	leal	1(%rax), %edx
	movl	-4072(%rbp), %eax
	addl	$65, %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L10:
	addl	$1, -4072(%rbp)
.L9:
	movl	-4080(%rbp), %eax
	cmpl	%eax, -4072(%rbp)
	jl	.L11
	addl	$1, -4076(%rbp)
.L8:
	movl	-4084(%rbp), %eax
	cmpl	%eax, -4076(%rbp)
	jl	.L12
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L14
	call	__stack_chk_fail@PLT
.L14:
	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 %d "
.LC1:
	.string	"%C%d"
	.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	$4096, %rsp
	orq	$0, (%rsp)
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-4064(%rbp), %rdx
	movl	$0, %eax
	movl	$507, %ecx
	movq	%rdx, %rdi
	rep stosq
	leaq	-4080(%rbp), %rdx
	leaq	-4084(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -4076(%rbp)
	jmp	.L2
.L7:
	movl	$0, -4072(%rbp)
	jmp	.L3
.L6:
	movl	$0, -4068(%rbp)
	jmp	.L4
.L5:
	call	getchar@PLT
	movl	%eax, %ecx
	movl	-4068(%rbp), %eax
	movslq	%eax, %rsi
	movl	-4076(%rbp), %eax
	cltq
	movl	-4072(%rbp), %edx
	movslq	%edx, %rdx
	imulq	$156, %rax, %rdi
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdi, %rax
	addq	%rbp, %rax
	addq	%rsi, %rax
	subq	$4064, %rax
	movb	%cl, (%rax)
	addl	$1, -4068(%rbp)
.L4:
	cmpl	$5, -4068(%rbp)
	jle	.L5
	addl	$1, -4072(%rbp)
.L3:
	movl	-4080(%rbp), %eax
	cmpl	%eax, -4072(%rbp)
	jl	.L6
	addl	$1, -4076(%rbp)
.L2:
	movl	-4084(%rbp), %eax
	cmpl	%eax, -4076(%rbp)
	jl	.L7
	movl	$0, -4076(%rbp)
	jmp	.L8
.L12:
	movl	$0, -4072(%rbp)
	jmp	.L9
.L11:
	movl	-4072(%rbp), %eax
	movslq	%eax, %rdx
	movl	-4076(%rbp), %eax
	movslq	%eax, %rcx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	imulq	$156, %rcx, %rdx
	addq	%rdx, %rax
	addq	%rbp, %rax
	subq	$4064, %rax
	movzbl	(%rax), %eax
	cmpb	$115, %al
	jne	.L10
	movl	-4072(%rbp), %eax
	movslq	%eax, %rdx
	movl	-4076(%rbp), %eax
	movslq	%eax, %rcx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	imulq	$156, %rcx, %rdx
	addq	%rdx, %rax
	addq	%rbp, %rax
	subq	$4063, %rax
	movzbl	(%rax), %eax
	cmpb	$110, %al
	jne	.L10
	movl	-4072(%rbp), %eax
	movslq	%eax, %rdx
	movl	-4076(%rbp), %eax
	movslq	%eax, %rcx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	imulq	$156, %rcx, %rdx
	addq	%rdx, %rax
	addq	%rbp, %rax
	subq	$4062, %rax
	movzbl	(%rax), %eax
	cmpb	$117, %al
	jne	.L10
	movl	-4072(%rbp), %eax
	movslq	%eax, %rdx
	movl	-4076(%rbp), %eax
	movslq	%eax, %rcx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	imulq	$156, %rcx, %rdx
	addq	%rdx, %rax
	addq	%rbp, %rax
	subq	$4061, %rax
	movzbl	(%rax), %eax
	cmpb	$107, %al
	jne	.L10
	movl	-4072(%rbp), %eax
	movslq	%eax, %rdx
	movl	-4076(%rbp), %eax
	movslq	%eax, %rcx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	imulq	$156, %rcx, %rdx
	addq	%rdx, %rax
	addq	%rbp, %rax
	subq	$4060, %rax
	movzbl	(%rax), %eax
	cmpb	$101, %al
	jne	.L10
	movl	-4076(%rbp), %eax
	leal	1(%rax), %edx
	movl	-4072(%rbp), %eax
	addl	$65, %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L10:
	addl	$1, -4072(%rbp)
.L9:
	movl	-4080(%rbp), %eax
	cmpl	%eax, -4072(%rbp)
	jl	.L11
	addl	$1, -4076(%rbp)
.L8:
	movl	-4084(%rbp), %eax
	cmpl	%eax, -4076(%rbp)
	jl	.L12
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L14
	call	__stack_chk_fail@PLT
.L14:
	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:
