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

```c
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <stdio.h>

int main()
{   int i=0,j,flag[7]={0};
    char s[101];
    scanf("%s",s);
    int l=strlen(s);
        if(s[0]=='k'&&s[1]=='e'&&s[2]=='y'&&s[3]=='e'&&s[4]=='n'&&s[5]=='c'){
            for(j=6;j<l;j++){
                if(s[l-1]=='e'){
                    printf("YES");
                    return 0;
                }
            }
        }else if(s[i]=='k'&&s[i+1]=='e'&&s[i+2]=='y'&&s[i+3]=='e'&&s[i+4]=='n'){
                    if(s[l-2]=='c'&&s[l-1]=='e'){
                        printf("YES");
                        return 0;
                    }
                }
            else if(s[i]=='k'&&s[i+1]=='e'&&s[i+2]=='y'&&s[i+3]=='e'){
                
                    if(s[l-3]=='n'&&s[l-2]=='c'&&s[l-1]=='e'){
                        printf("YES");
                        return 0;
                    
                }
            }else if(s[i]=='k'&&s[i+1]=='e'&&s[i+2]=='y'){
                
                    if(s[l-4]=='e'&&s[l-3]=='n'&&s[l-2]=='c'&&s[l-1]=='e'){
                        printf("YES");
                        return 0;
                    }
                }
            else if(s[i]=='k'&&s[i+1]=='e'){
                
                    if(s[l-5]=='y'&&s[l-4]=='e'&&s[l-3]=='n'&&s[l-2]=='c'&&s[l-1]=='e'){
                        printf("YES");
                        return 0;
                    
                }
            }else if(s[i]=='k'){
               
                    if(s[l-6]=='e'&&s[l-5]=='y'&&s[l-4]=='e'&&s[l-3]=='n'&&s[l-2]=='c'&&s[l-1]=='e'){
                        printf("YES");
                        return 0;
                    
                }
            }

    printf("NO");

    return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%s"
.LC1:
	.string	"YES"
.LC2:
	.string	"NO"
	.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
	subq	$160, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -152(%rbp)
	movq	$0, -144(%rbp)
	movq	$0, -136(%rbp)
	movq	$0, -128(%rbp)
	movl	$0, -120(%rbp)
	leaq	-112(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	-112(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	movl	%eax, -148(%rbp)
	movzbl	-112(%rbp), %eax
	cmpb	$107, %al
	jne	.L2
	movzbl	-111(%rbp), %eax
	cmpb	$101, %al
	jne	.L2
	movzbl	-110(%rbp), %eax
	cmpb	$121, %al
	jne	.L2
	movzbl	-109(%rbp), %eax
	cmpb	$101, %al
	jne	.L2
	movzbl	-108(%rbp), %eax
	cmpb	$110, %al
	jne	.L2
	movzbl	-107(%rbp), %eax
	cmpb	$99, %al
	jne	.L2
	movl	$6, -156(%rbp)
	jmp	.L3
.L6:
	movl	-148(%rbp), %eax
	subl	$1, %eax
	cltq
	movzbl	-112(%rbp,%rax), %eax
	cmpb	$101, %al
	jne	.L4
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	jmp	.L16
.L4:
	addl	$1, -156(%rbp)
.L3:
	movl	-156(%rbp), %eax
	cmpl	-148(%rbp), %eax
	jl	.L6
	jmp	.L7
.L2:
	movl	-152(%rbp), %eax
	cltq
	movzbl	-112(%rbp,%rax), %eax
	cmpb	$107, %al
	jne	.L8
	movl	-152(%rbp), %eax
	addl	$1, %eax
	cltq
	movzbl	-112(%rbp,%rax), %eax
	cmpb	$101, %al
	jne	.L8
	movl	-152(%rbp), %eax
	addl	$2, %eax
	cltq
	movzbl	-112(%rbp,%rax), %eax
	cmpb	$121, %al
	jne	.L8
	movl	-152(%rbp), %eax
	addl	$3, %eax
	cltq
	movzbl	-112(%rbp,%rax), %eax
	cmpb	$101, %al
	jne	.L8
	movl	-152(%rbp), %eax
	addl	$4, %eax
	cltq
	movzbl	-112(%rbp,%rax), %eax
	cmpb	$110, %al
	jne	.L8
	movl	-148(%rbp), %eax
	subl	$2, %eax
	cltq
	movzbl	-112(%rbp,%rax), %eax
	cmpb	$99, %al
	jne	.L18
	movl	-148(%rbp), %eax
	subl	$1, %eax
	cltq
	movzbl	-112(%rbp,%rax), %eax
	cmpb	$101, %al
	jne	.L18
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	jmp	.L16
.L8:
	movl	-152(%rbp), %eax
	cltq
	movzbl	-112(%rbp,%rax), %eax
	cmpb	$107, %al
	jne	.L10
	movl	-152(%rbp), %eax
	addl	$1, %eax
	cltq
	movzbl	-112(%rbp,%rax), %eax
	cmpb	$101, %al
	jne	.L10
	movl	-152(%rbp), %eax
	addl	$2, %eax
	cltq
	movzbl	-112(%rbp,%rax), %eax
	cmpb	$121, %al
	jne	.L10
	movl	-152(%rbp), %eax
	addl	$3, %eax
	cltq
	movzbl	-112(%rbp,%rax), %eax
	cmpb	$101, %al
	jne	.L10
	movl	-148(%rbp), %eax
	subl	$3, %eax
	cltq
	movzbl	-112(%rbp,%rax), %eax
	cmpb	$110, %al
	jne	.L19
	movl	-148(%rbp), %eax
	subl	$2, %eax
	cltq
	movzbl	-112(%rbp,%rax), %eax
	cmpb	$99, %al
	jne	.L19
	movl	-148(%rbp), %eax
	subl	$1, %eax
	cltq
	movzbl	-112(%rbp,%rax), %eax
	cmpb	$101, %al
	jne	.L19
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	jmp	.L16
.L10:
	movl	-152(%rbp), %eax
	cltq
	movzbl	-112(%rbp,%rax), %eax
	cmpb	$107, %al
	jne	.L12
	movl	-152(%rbp), %eax
	addl	$1, %eax
	cltq
	movzbl	-112(%rbp,%rax), %eax
	cmpb	$101, %al
	jne	.L12
	movl	-152(%rbp), %eax
	addl	$2, %eax
	cltq
	movzbl	-112(%rbp,%rax), %eax
	cmpb	$121, %al
	jne	.L12
	movl	-148(%rbp), %eax
	subl	$4, %eax
	cltq
	movzbl	-112(%rbp,%rax), %eax
	cmpb	$101, %al
	jne	.L20
	movl	-148(%rbp), %eax
	subl	$3, %eax
	cltq
	movzbl	-112(%rbp,%rax), %eax
	cmpb	$110, %al
	jne	.L20
	movl	-148(%rbp), %eax
	subl	$2, %eax
	cltq
	movzbl	-112(%rbp,%rax), %eax
	cmpb	$99, %al
	jne	.L20
	movl	-148(%rbp), %eax
	subl	$1, %eax
	cltq
	movzbl	-112(%rbp,%rax), %eax
	cmpb	$101, %al
	jne	.L20
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	jmp	.L16
.L12:
	movl	-152(%rbp), %eax
	cltq
	movzbl	-112(%rbp,%rax), %eax
	cmpb	$107, %al
	jne	.L14
	movl	-152(%rbp), %eax
	addl	$1, %eax
	cltq
	movzbl	-112(%rbp,%rax), %eax
	cmpb	$101, %al
	jne	.L14
	movl	-148(%rbp), %eax
	subl	$5, %eax
	cltq
	movzbl	-112(%rbp,%rax), %eax
	cmpb	$121, %al
	jne	.L21
	movl	-148(%rbp), %eax
	subl	$4, %eax
	cltq
	movzbl	-112(%rbp,%rax), %eax
	cmpb	$101, %al
	jne	.L21
	movl	-148(%rbp), %eax
	subl	$3, %eax
	cltq
	movzbl	-112(%rbp,%rax), %eax
	cmpb	$110, %al
	jne	.L21
	movl	-148(%rbp), %eax
	subl	$2, %eax
	cltq
	movzbl	-112(%rbp,%rax), %eax
	cmpb	$99, %al
	jne	.L21
	movl	-148(%rbp), %eax
	subl	$1, %eax
	cltq
	movzbl	-112(%rbp,%rax), %eax
	cmpb	$101, %al
	jne	.L21
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	jmp	.L16
.L14:
	movl	-152(%rbp), %eax
	cltq
	movzbl	-112(%rbp,%rax), %eax
	cmpb	$107, %al
	jne	.L7
	movl	-148(%rbp), %eax
	subl	$6, %eax
	cltq
	movzbl	-112(%rbp,%rax), %eax
	cmpb	$101, %al
	jne	.L7
	movl	-148(%rbp), %eax
	subl	$5, %eax
	cltq
	movzbl	-112(%rbp,%rax), %eax
	cmpb	$121, %al
	jne	.L7
	movl	-148(%rbp), %eax
	subl	$4, %eax
	cltq
	movzbl	-112(%rbp,%rax), %eax
	cmpb	$101, %al
	jne	.L7
	movl	-148(%rbp), %eax
	subl	$3, %eax
	cltq
	movzbl	-112(%rbp,%rax), %eax
	cmpb	$110, %al
	jne	.L7
	movl	-148(%rbp), %eax
	subl	$2, %eax
	cltq
	movzbl	-112(%rbp,%rax), %eax
	cmpb	$99, %al
	jne	.L7
	movl	-148(%rbp), %eax
	subl	$1, %eax
	cltq
	movzbl	-112(%rbp,%rax), %eax
	cmpb	$101, %al
	jne	.L7
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	jmp	.L16
.L18:
	nop
	jmp	.L7
.L19:
	nop
	jmp	.L7
.L20:
	nop
	jmp	.L7
.L21:
	nop
.L7:
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
.L16:
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L17
	call	__stack_chk_fail@PLT
.L17:
	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	"%s"
.LC1:
	.string	"YES"
.LC2:
	.string	"NO"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB51:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	leaq	.LC0(%rip), %rdi
	subq	$112, %rsp
	.cfi_def_cfa_offset 128
	movq	%fs:40, %rax
	movq	%rax, 104(%rsp)
	xorl	%eax, %eax
	movq	%rsp, %rbp
	movq	%rbp, %rsi
	call	__isoc99_scanf@PLT
	movq	%rbp, %rdi
	call	strlen@PLT
	cmpb	$107, (%rsp)
	je	.L38
.L2:
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L8:
	movq	104(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L39
	addq	$112, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	xorl	%eax, %eax
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
.L38:
	.cfi_restore_state
	cmpb	$101, 1(%rsp)
	movl	%eax, %edx
	je	.L40
	leal	-6(%rax), %edx
	movslq	%edx, %rdx
	cmpb	$101, (%rsp,%rdx)
	jne	.L2
.L14:
	leal	-5(%rax), %edx
	movslq	%edx, %rdx
	cmpb	$121, (%rsp,%rdx)
	jne	.L2
.L34:
	leal	-4(%rax), %edx
	movslq	%edx, %rdx
	cmpb	$101, (%rsp,%rdx)
	jne	.L2
.L30:
	leal	-3(%rax), %edx
	movslq	%edx, %rdx
	cmpb	$110, (%rsp,%rdx)
	jne	.L2
.L25:
	leal	-2(%rax), %edx
	movslq	%edx, %rdx
	cmpb	$99, (%rsp,%rdx)
	jne	.L2
	subl	$1, %eax
	cltq
	cmpb	$101, (%rsp,%rax)
	jne	.L2
.L11:
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L8
.L40:
	cmpb	$121, 2(%rsp)
	jne	.L14
	cmpb	$101, 3(%rsp)
	je	.L41
.L5:
	cmpb	$101, 3(%rsp)
	je	.L42
.L10:
	cmpb	$101, 3(%rsp)
	jne	.L34
	jmp	.L30
.L41:
	cmpb	$110, 4(%rsp)
	jne	.L5
	cmpb	$99, 5(%rsp)
	jne	.L5
	leal	-1(%rdx), %ecx
	movl	$6, %eax
	movslq	%ecx, %rcx
	jmp	.L6
.L9:
	cmpb	$101, (%rsp,%rcx)
	je	.L11
	addl	$1, %eax
.L6:
	cmpl	%edx, %eax
	jl	.L9
	jmp	.L2
.L42:
	cmpb	$110, 4(%rsp)
	jne	.L10
	jmp	.L25
.L39:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE51:
	.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	"%s"
.LC1:
	.string	"YES"
.LC2:
	.string	"NO"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB51:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	leaq	.LC0(%rip), %rdi
	subq	$112, %rsp
	.cfi_def_cfa_offset 128
	movq	%fs:40, %rax
	movq	%rax, 104(%rsp)
	xorl	%eax, %eax
	movq	%rsp, %rbp
	movq	%rbp, %rsi
	call	__isoc99_scanf@PLT
	movq	%rbp, %rdi
	call	strlen@PLT
	cmpb	$107, (%rsp)
	je	.L38
.L2:
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L8:
	movq	104(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L39
	addq	$112, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	xorl	%eax, %eax
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
.L38:
	.cfi_restore_state
	cmpb	$101, 1(%rsp)
	movl	%eax, %edx
	je	.L40
	leal	-6(%rax), %edx
	movslq	%edx, %rdx
	cmpb	$101, (%rsp,%rdx)
	jne	.L2
.L14:
	leal	-5(%rax), %edx
	movslq	%edx, %rdx
	cmpb	$121, (%rsp,%rdx)
	jne	.L2
.L34:
	leal	-4(%rax), %edx
	movslq	%edx, %rdx
	cmpb	$101, (%rsp,%rdx)
	jne	.L2
.L30:
	leal	-3(%rax), %edx
	movslq	%edx, %rdx
	cmpb	$110, (%rsp,%rdx)
	jne	.L2
.L25:
	leal	-2(%rax), %edx
	movslq	%edx, %rdx
	cmpb	$99, (%rsp,%rdx)
	jne	.L2
	subl	$1, %eax
	cltq
	cmpb	$101, (%rsp,%rax)
	jne	.L2
.L11:
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L8
.L40:
	cmpb	$121, 2(%rsp)
	jne	.L14
	cmpb	$101, 3(%rsp)
	je	.L41
.L5:
	cmpb	$101, 3(%rsp)
	je	.L42
.L10:
	cmpb	$101, 3(%rsp)
	jne	.L34
	jmp	.L30
.L41:
	cmpb	$110, 4(%rsp)
	jne	.L5
	cmpb	$99, 5(%rsp)
	jne	.L5
	leal	-1(%rdx), %ecx
	movl	$6, %eax
	movslq	%ecx, %rcx
	jmp	.L6
.L9:
	cmpb	$101, (%rsp,%rcx)
	je	.L11
	addl	$1, %eax
.L6:
	cmpl	%edx, %eax
	jl	.L9
	jmp	.L2
.L42:
	cmpb	$110, 4(%rsp)
	jne	.L10
	jmp	.L25
.L39:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE51:
	.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 <stdlib.h>
#include <string.h>
#include <math.h>
#include <stdio.h>

int main()
{   int i=0,j,flag[7]={0};
    char s[101];
    scanf("%s",s);
    int l=strlen(s);
        if(s[0]=='k'&&s[1]=='e'&&s[2]=='y'&&s[3]=='e'&&s[4]=='n'&&s[5]=='c'){
            for(j=6;j<l;j++){
                if(s[l-1]=='e'){
                    printf("YES");
                    return 0;
                }
            }
        }else if(s[i]=='k'&&s[i+1]=='e'&&s[i+2]=='y'&&s[i+3]=='e'&&s[i+4]=='n'){
                    if(s[l-2]=='c'&&s[l-1]=='e'){
                        printf("YES");
                        return 0;
                    }
                }
            else if(s[i]=='k'&&s[i+1]=='e'&&s[i+2]=='y'&&s[i+3]=='e'){
                
                    if(s[l-3]=='n'&&s[l-2]=='c'&&s[l-1]=='e'){
                        printf("YES");
                        return 0;
                    
                }
            }else if(s[i]=='k'&&s[i+1]=='e'&&s[i+2]=='y'){
                
                    if(s[l-4]=='e'&&s[l-3]=='n'&&s[l-2]=='c'&&s[l-1]=='e'){
                        printf("YES");
                        return 0;
                    }
                }
            else if(s[i]=='k'&&s[i+1]=='e'){
                
                    if(s[l-5]=='y'&&s[l-4]=='e'&&s[l-3]=='n'&&s[l-2]=='c'&&s[l-1]=='e'){
                        printf("YES");
                        return 0;
                    
                }
            }else if(s[i]=='k'){
               
                    if(s[l-6]=='e'&&s[l-5]=='y'&&s[l-4]=='e'&&s[l-3]=='n'&&s[l-2]=='c'&&s[l-1]=='e'){
                        printf("YES");
                        return 0;
                    
                }
            }

    printf("NO");

    return 0;
}

ecneyek
 ashkfyha
 eeyofscienck
 mnyszsbzpf
 ecneyel
 arhkfyha
 eeyofsciencj
 mnyszsb{pf
 ecleyen
 arhkyfha

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

```c
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <stdio.h>

int main()
{   int i=0,j,flag[7]={0};
    char s[101];
    scanf("%s",s);
    int l=strlen(s);
        if(s[0]=='k'&&s[1]=='e'&&s[2]=='y'&&s[3]=='e'&&s[4]=='n'&&s[5]=='c'){
            for(j=6;j<l;j++){
                if(s[l-1]=='e'){
                    printf("YES");
                    return 0;
                }
            }
        }else if(s[i]=='k'&&s[i+1]=='e'&&s[i+2]=='y'&&s[i+3]=='e'&&s[i+4]=='n'){
                    if(s[l-2]=='c'&&s[l-1]=='e'){
                        printf("YES");
                        return 0;
                    }
                }
            else if(s[i]=='k'&&s[i+1]=='e'&&s[i+2]=='y'&&s[i+3]=='e'){
                
                    if(s[l-3]=='n'&&s[l-2]=='c'&&s[l-1]=='e'){
                        printf("YES");
                        return 0;
                    
                }
            }else if(s[i]=='k'&&s[i+1]=='e'&&s[i+2]=='y'){
                
                    if(s[l-4]=='e'&&s[l-3]=='n'&&s[l-2]=='c'&&s[l-1]=='e'){
                        printf("YES");
                        return 0;
                    }
                }
            else if(s[i]=='k'&&s[i+1]=='e'){
                
                    if(s[l-5]=='y'&&s[l-4]=='e'&&s[l-3]=='n'&&s[l-2]=='c'&&s[l-1]=='e'){
                        printf("YES");
                        return 0;
                    
                }
            }else if(s[i]=='k'){
               
                    if(s[l-6]=='e'&&s[l-5]=='y'&&s[l-4]=='e'&&s[l-3]=='n'&&s[l-2]=='c'&&s[l-1]=='e'){
                        printf("YES");
                        return 0;
                    
                }
            }

    printf("NO");

    return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%s"
.LC1:
	.string	"YES"
.LC2:
	.string	"NO"
	.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
	subq	$160, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -152(%rbp)
	movq	$0, -144(%rbp)
	movq	$0, -136(%rbp)
	movq	$0, -128(%rbp)
	movl	$0, -120(%rbp)
	leaq	-112(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	-112(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	movl	%eax, -148(%rbp)
	movzbl	-112(%rbp), %eax
	cmpb	$107, %al
	jne	.L2
	movzbl	-111(%rbp), %eax
	cmpb	$101, %al
	jne	.L2
	movzbl	-110(%rbp), %eax
	cmpb	$121, %al
	jne	.L2
	movzbl	-109(%rbp), %eax
	cmpb	$101, %al
	jne	.L2
	movzbl	-108(%rbp), %eax
	cmpb	$110, %al
	jne	.L2
	movzbl	-107(%rbp), %eax
	cmpb	$99, %al
	jne	.L2
	movl	$6, -156(%rbp)
	jmp	.L3
.L6:
	movl	-148(%rbp), %eax
	subl	$1, %eax
	cltq
	movzbl	-112(%rbp,%rax), %eax
	cmpb	$101, %al
	jne	.L4
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	jmp	.L16
.L4:
	addl	$1, -156(%rbp)
.L3:
	movl	-156(%rbp), %eax
	cmpl	-148(%rbp), %eax
	jl	.L6
	jmp	.L7
.L2:
	movl	-152(%rbp), %eax
	cltq
	movzbl	-112(%rbp,%rax), %eax
	cmpb	$107, %al
	jne	.L8
	movl	-152(%rbp), %eax
	addl	$1, %eax
	cltq
	movzbl	-112(%rbp,%rax), %eax
	cmpb	$101, %al
	jne	.L8
	movl	-152(%rbp), %eax
	addl	$2, %eax
	cltq
	movzbl	-112(%rbp,%rax), %eax
	cmpb	$121, %al
	jne	.L8
	movl	-152(%rbp), %eax
	addl	$3, %eax
	cltq
	movzbl	-112(%rbp,%rax), %eax
	cmpb	$101, %al
	jne	.L8
	movl	-152(%rbp), %eax
	addl	$4, %eax
	cltq
	movzbl	-112(%rbp,%rax), %eax
	cmpb	$110, %al
	jne	.L8
	movl	-148(%rbp), %eax
	subl	$2, %eax
	cltq
	movzbl	-112(%rbp,%rax), %eax
	cmpb	$99, %al
	jne	.L18
	movl	-148(%rbp), %eax
	subl	$1, %eax
	cltq
	movzbl	-112(%rbp,%rax), %eax
	cmpb	$101, %al
	jne	.L18
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	jmp	.L16
.L8:
	movl	-152(%rbp), %eax
	cltq
	movzbl	-112(%rbp,%rax), %eax
	cmpb	$107, %al
	jne	.L10
	movl	-152(%rbp), %eax
	addl	$1, %eax
	cltq
	movzbl	-112(%rbp,%rax), %eax
	cmpb	$101, %al
	jne	.L10
	movl	-152(%rbp), %eax
	addl	$2, %eax
	cltq
	movzbl	-112(%rbp,%rax), %eax
	cmpb	$121, %al
	jne	.L10
	movl	-152(%rbp), %eax
	addl	$3, %eax
	cltq
	movzbl	-112(%rbp,%rax), %eax
	cmpb	$101, %al
	jne	.L10
	movl	-148(%rbp), %eax
	subl	$3, %eax
	cltq
	movzbl	-112(%rbp,%rax), %eax
	cmpb	$110, %al
	jne	.L19
	movl	-148(%rbp), %eax
	subl	$2, %eax
	cltq
	movzbl	-112(%rbp,%rax), %eax
	cmpb	$99, %al
	jne	.L19
	movl	-148(%rbp), %eax
	subl	$1, %eax
	cltq
	movzbl	-112(%rbp,%rax), %eax
	cmpb	$101, %al
	jne	.L19
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	jmp	.L16
.L10:
	movl	-152(%rbp), %eax
	cltq
	movzbl	-112(%rbp,%rax), %eax
	cmpb	$107, %al
	jne	.L12
	movl	-152(%rbp), %eax
	addl	$1, %eax
	cltq
	movzbl	-112(%rbp,%rax), %eax
	cmpb	$101, %al
	jne	.L12
	movl	-152(%rbp), %eax
	addl	$2, %eax
	cltq
	movzbl	-112(%rbp,%rax), %eax
	cmpb	$121, %al
	jne	.L12
	movl	-148(%rbp), %eax
	subl	$4, %eax
	cltq
	movzbl	-112(%rbp,%rax), %eax
	cmpb	$101, %al
	jne	.L20
	movl	-148(%rbp), %eax
	subl	$3, %eax
	cltq
	movzbl	-112(%rbp,%rax), %eax
	cmpb	$110, %al
	jne	.L20
	movl	-148(%rbp), %eax
	subl	$2, %eax
	cltq
	movzbl	-112(%rbp,%rax), %eax
	cmpb	$99, %al
	jne	.L20
	movl	-148(%rbp), %eax
	subl	$1, %eax
	cltq
	movzbl	-112(%rbp,%rax), %eax
	cmpb	$101, %al
	jne	.L20
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	jmp	.L16
.L12:
	movl	-152(%rbp), %eax
	cltq
	movzbl	-112(%rbp,%rax), %eax
	cmpb	$107, %al
	jne	.L14
	movl	-152(%rbp), %eax
	addl	$1, %eax
	cltq
	movzbl	-112(%rbp,%rax), %eax
	cmpb	$101, %al
	jne	.L14
	movl	-148(%rbp), %eax
	subl	$5, %eax
	cltq
	movzbl	-112(%rbp,%rax), %eax
	cmpb	$121, %al
	jne	.L21
	movl	-148(%rbp), %eax
	subl	$4, %eax
	cltq
	movzbl	-112(%rbp,%rax), %eax
	cmpb	$101, %al
	jne	.L21
	movl	-148(%rbp), %eax
	subl	$3, %eax
	cltq
	movzbl	-112(%rbp,%rax), %eax
	cmpb	$110, %al
	jne	.L21
	movl	-148(%rbp), %eax
	subl	$2, %eax
	cltq
	movzbl	-112(%rbp,%rax), %eax
	cmpb	$99, %al
	jne	.L21
	movl	-148(%rbp), %eax
	subl	$1, %eax
	cltq
	movzbl	-112(%rbp,%rax), %eax
	cmpb	$101, %al
	jne	.L21
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	jmp	.L16
.L14:
	movl	-152(%rbp), %eax
	cltq
	movzbl	-112(%rbp,%rax), %eax
	cmpb	$107, %al
	jne	.L7
	movl	-148(%rbp), %eax
	subl	$6, %eax
	cltq
	movzbl	-112(%rbp,%rax), %eax
	cmpb	$101, %al
	jne	.L7
	movl	-148(%rbp), %eax
	subl	$5, %eax
	cltq
	movzbl	-112(%rbp,%rax), %eax
	cmpb	$121, %al
	jne	.L7
	movl	-148(%rbp), %eax
	subl	$4, %eax
	cltq
	movzbl	-112(%rbp,%rax), %eax
	cmpb	$101, %al
	jne	.L7
	movl	-148(%rbp), %eax
	subl	$3, %eax
	cltq
	movzbl	-112(%rbp,%rax), %eax
	cmpb	$110, %al
	jne	.L7
	movl	-148(%rbp), %eax
	subl	$2, %eax
	cltq
	movzbl	-112(%rbp,%rax), %eax
	cmpb	$99, %al
	jne	.L7
	movl	-148(%rbp), %eax
	subl	$1, %eax
	cltq
	movzbl	-112(%rbp,%rax), %eax
	cmpb	$101, %al
	jne	.L7
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	jmp	.L16
.L18:
	nop
	jmp	.L7
.L19:
	nop
	jmp	.L7
.L20:
	nop
	jmp	.L7
.L21:
	nop
.L7:
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
.L16:
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L17
	call	__stack_chk_fail@PLT
.L17:
	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	"%s"
.LC1:
	.string	"YES"
.LC2:
	.string	"NO"
	.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
	subq	$160, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -152(%rbp)
	movq	$0, -144(%rbp)
	movq	$0, -136(%rbp)
	movq	$0, -128(%rbp)
	movl	$0, -120(%rbp)
	leaq	-112(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	-112(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	movl	%eax, -148(%rbp)
	movzbl	-112(%rbp), %eax
	cmpb	$107, %al
	jne	.L2
	movzbl	-111(%rbp), %eax
	cmpb	$101, %al
	jne	.L2
	movzbl	-110(%rbp), %eax
	cmpb	$121, %al
	jne	.L2
	movzbl	-109(%rbp), %eax
	cmpb	$101, %al
	jne	.L2
	movzbl	-108(%rbp), %eax
	cmpb	$110, %al
	jne	.L2
	movzbl	-107(%rbp), %eax
	cmpb	$99, %al
	jne	.L2
	movl	$6, -156(%rbp)
	jmp	.L3
.L6:
	movl	-148(%rbp), %eax
	subl	$1, %eax
	cltq
	movzbl	-112(%rbp,%rax), %eax
	cmpb	$101, %al
	jne	.L4
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	jmp	.L16
.L4:
	addl	$1, -156(%rbp)
.L3:
	movl	-156(%rbp), %eax
	cmpl	-148(%rbp), %eax
	jl	.L6
	jmp	.L7
.L2:
	movl	-152(%rbp), %eax
	cltq
	movzbl	-112(%rbp,%rax), %eax
	cmpb	$107, %al
	jne	.L8
	movl	-152(%rbp), %eax
	addl	$1, %eax
	cltq
	movzbl	-112(%rbp,%rax), %eax
	cmpb	$101, %al
	jne	.L8
	movl	-152(%rbp), %eax
	addl	$2, %eax
	cltq
	movzbl	-112(%rbp,%rax), %eax
	cmpb	$121, %al
	jne	.L8
	movl	-152(%rbp), %eax
	addl	$3, %eax
	cltq
	movzbl	-112(%rbp,%rax), %eax
	cmpb	$101, %al
	jne	.L8
	movl	-152(%rbp), %eax
	addl	$4, %eax
	cltq
	movzbl	-112(%rbp,%rax), %eax
	cmpb	$110, %al
	jne	.L8
	movl	-148(%rbp), %eax
	subl	$2, %eax
	cltq
	movzbl	-112(%rbp,%rax), %eax
	cmpb	$99, %al
	jne	.L18
	movl	-148(%rbp), %eax
	subl	$1, %eax
	cltq
	movzbl	-112(%rbp,%rax), %eax
	cmpb	$101, %al
	jne	.L18
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	jmp	.L16
.L8:
	movl	-152(%rbp), %eax
	cltq
	movzbl	-112(%rbp,%rax), %eax
	cmpb	$107, %al
	jne	.L10
	movl	-152(%rbp), %eax
	addl	$1, %eax
	cltq
	movzbl	-112(%rbp,%rax), %eax
	cmpb	$101, %al
	jne	.L10
	movl	-152(%rbp), %eax
	addl	$2, %eax
	cltq
	movzbl	-112(%rbp,%rax), %eax
	cmpb	$121, %al
	jne	.L10
	movl	-152(%rbp), %eax
	addl	$3, %eax
	cltq
	movzbl	-112(%rbp,%rax), %eax
	cmpb	$101, %al
	jne	.L10
	movl	-148(%rbp), %eax
	subl	$3, %eax
	cltq
	movzbl	-112(%rbp,%rax), %eax
	cmpb	$110, %al
	jne	.L19
	movl	-148(%rbp), %eax
	subl	$2, %eax
	cltq
	movzbl	-112(%rbp,%rax), %eax
	cmpb	$99, %al
	jne	.L19
	movl	-148(%rbp), %eax
	subl	$1, %eax
	cltq
	movzbl	-112(%rbp,%rax), %eax
	cmpb	$101, %al
	jne	.L19
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	jmp	.L16
.L10:
	movl	-152(%rbp), %eax
	cltq
	movzbl	-112(%rbp,%rax), %eax
	cmpb	$107, %al
	jne	.L12
	movl	-152(%rbp), %eax
	addl	$1, %eax
	cltq
	movzbl	-112(%rbp,%rax), %eax
	cmpb	$101, %al
	jne	.L12
	movl	-152(%rbp), %eax
	addl	$2, %eax
	cltq
	movzbl	-112(%rbp,%rax), %eax
	cmpb	$121, %al
	jne	.L12
	movl	-148(%rbp), %eax
	subl	$4, %eax
	cltq
	movzbl	-112(%rbp,%rax), %eax
	cmpb	$101, %al
	jne	.L20
	movl	-148(%rbp), %eax
	subl	$3, %eax
	cltq
	movzbl	-112(%rbp,%rax), %eax
	cmpb	$110, %al
	jne	.L20
	movl	-148(%rbp), %eax
	subl	$2, %eax
	cltq
	movzbl	-112(%rbp,%rax), %eax
	cmpb	$99, %al
	jne	.L20
	movl	-148(%rbp), %eax
	subl	$1, %eax
	cltq
	movzbl	-112(%rbp,%rax), %eax
	cmpb	$101, %al
	jne	.L20
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	jmp	.L16
.L12:
	movl	-152(%rbp), %eax
	cltq
	movzbl	-112(%rbp,%rax), %eax
	cmpb	$107, %al
	jne	.L14
	movl	-152(%rbp), %eax
	addl	$1, %eax
	cltq
	movzbl	-112(%rbp,%rax), %eax
	cmpb	$101, %al
	jne	.L14
	movl	-148(%rbp), %eax
	subl	$5, %eax
	cltq
	movzbl	-112(%rbp,%rax), %eax
	cmpb	$121, %al
	jne	.L21
	movl	-148(%rbp), %eax
	subl	$4, %eax
	cltq
	movzbl	-112(%rbp,%rax), %eax
	cmpb	$101, %al
	jne	.L21
	movl	-148(%rbp), %eax
	subl	$3, %eax
	cltq
	movzbl	-112(%rbp,%rax), %eax
	cmpb	$110, %al
	jne	.L21
	movl	-148(%rbp), %eax
	subl	$2, %eax
	cltq
	movzbl	-112(%rbp,%rax), %eax
	cmpb	$99, %al
	jne	.L21
	movl	-148(%rbp), %eax
	subl	$1, %eax
	cltq
	movzbl	-112(%rbp,%rax), %eax
	cmpb	$101, %al
	jne	.L21
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	jmp	.L16
.L14:
	movl	-152(%rbp), %eax
	cltq
	movzbl	-112(%rbp,%rax), %eax
	cmpb	$107, %al
	jne	.L7
	movl	-148(%rbp), %eax
	subl	$6, %eax
	cltq
	movzbl	-112(%rbp,%rax), %eax
	cmpb	$101, %al
	jne	.L7
	movl	-148(%rbp), %eax
	subl	$5, %eax
	cltq
	movzbl	-112(%rbp,%rax), %eax
	cmpb	$121, %al
	jne	.L7
	movl	-148(%rbp), %eax
	subl	$4, %eax
	cltq
	movzbl	-112(%rbp,%rax), %eax
	cmpb	$101, %al
	jne	.L7
	movl	-148(%rbp), %eax
	subl	$3, %eax
	cltq
	movzbl	-112(%rbp,%rax), %eax
	cmpb	$110, %al
	jne	.L7
	movl	-148(%rbp), %eax
	subl	$2, %eax
	cltq
	movzbl	-112(%rbp,%rax), %eax
	cmpb	$99, %al
	jne	.L7
	movl	-148(%rbp), %eax
	subl	$1, %eax
	cltq
	movzbl	-112(%rbp,%rax), %eax
	cmpb	$101, %al
	jne	.L7
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	jmp	.L16
.L18:
	nop
	jmp	.L7
.L19:
	nop
	jmp	.L7
.L20:
	nop
	jmp	.L7
.L21:
	nop
.L7:
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
.L16:
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L17
	call	__stack_chk_fail@PLT
.L17:
	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:
