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<string.h>
int main(){
  char s[100002];
  scanf("%s",s);
  int len=strlen(s);
  while(len>0){
    if(len>=6 && s[len-6]=='e' && s[len-5]=='r' && s[len-4]=='a' && s[len-3]=='s' && s[len-2]=='e' && s[len-1]=='r')
      len-=6;
    else if(len>=5 && s[len-5]=='e' && s[len-4]=='r' && s[len-3]=='a' && s[len-2]=='s' && s[len-1]=='e')
      len-=5;
    else if(len>=5 && s[len-5]=='d' && s[len-4]=='r' && s[len-3]=='e' && s[len-2]=='a' && s[len-1]=='m')
      len-=5;
    else if(len>=7 && s[len-7]=='d' && s[len-6]=='r' && s[len-5]=='e' && s[len-4]=='a' && s[len-3]=='m' && s[len-2]=='e' && s[len-1]=='r')
      len-=7;
    else{
      puts("NO");
      return 0;
    }
  }
  puts("YES");
  return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%s"
.LC1:
	.string	"NO"
.LC2:
	.string	"YES"
	.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
	leaq	-98304(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$1728, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-100016(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	-100016(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	movl	%eax, -100020(%rbp)
	jmp	.L2
.L8:
	cmpl	$5, -100020(%rbp)
	jle	.L3
	movl	-100020(%rbp), %eax
	subl	$6, %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$101, %al
	jne	.L3
	movl	-100020(%rbp), %eax
	subl	$5, %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$114, %al
	jne	.L3
	movl	-100020(%rbp), %eax
	subl	$4, %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$97, %al
	jne	.L3
	movl	-100020(%rbp), %eax
	subl	$3, %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$115, %al
	jne	.L3
	movl	-100020(%rbp), %eax
	subl	$2, %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$101, %al
	jne	.L3
	movl	-100020(%rbp), %eax
	subl	$1, %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$114, %al
	jne	.L3
	subl	$6, -100020(%rbp)
	jmp	.L2
.L3:
	cmpl	$4, -100020(%rbp)
	jle	.L4
	movl	-100020(%rbp), %eax
	subl	$5, %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$101, %al
	jne	.L4
	movl	-100020(%rbp), %eax
	subl	$4, %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$114, %al
	jne	.L4
	movl	-100020(%rbp), %eax
	subl	$3, %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$97, %al
	jne	.L4
	movl	-100020(%rbp), %eax
	subl	$2, %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$115, %al
	jne	.L4
	movl	-100020(%rbp), %eax
	subl	$1, %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$101, %al
	jne	.L4
	subl	$5, -100020(%rbp)
	jmp	.L2
.L4:
	cmpl	$4, -100020(%rbp)
	jle	.L5
	movl	-100020(%rbp), %eax
	subl	$5, %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$100, %al
	jne	.L5
	movl	-100020(%rbp), %eax
	subl	$4, %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$114, %al
	jne	.L5
	movl	-100020(%rbp), %eax
	subl	$3, %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$101, %al
	jne	.L5
	movl	-100020(%rbp), %eax
	subl	$2, %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$97, %al
	jne	.L5
	movl	-100020(%rbp), %eax
	subl	$1, %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$109, %al
	jne	.L5
	subl	$5, -100020(%rbp)
	jmp	.L2
.L5:
	cmpl	$6, -100020(%rbp)
	jle	.L6
	movl	-100020(%rbp), %eax
	subl	$7, %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$100, %al
	jne	.L6
	movl	-100020(%rbp), %eax
	subl	$6, %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$114, %al
	jne	.L6
	movl	-100020(%rbp), %eax
	subl	$5, %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$101, %al
	jne	.L6
	movl	-100020(%rbp), %eax
	subl	$4, %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$97, %al
	jne	.L6
	movl	-100020(%rbp), %eax
	subl	$3, %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$109, %al
	jne	.L6
	movl	-100020(%rbp), %eax
	subl	$2, %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$101, %al
	jne	.L6
	movl	-100020(%rbp), %eax
	subl	$1, %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$114, %al
	jne	.L6
	subl	$7, -100020(%rbp)
	jmp	.L2
.L6:
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, %eax
	jmp	.L9
.L2:
	cmpl	$0, -100020(%rbp)
	jg	.L8
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, %eax
.L9:
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L10
	call	__stack_chk_fail@PLT
.L10:
	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	"%s"
.LC1:
	.string	"NO"
.LC2:
	.string	"YES"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB35:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	leaq	-98304(%rsp), %r11
	.cfi_def_cfa 11, 98320
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$1712, %rsp
	.cfi_def_cfa_offset 100032
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 100008(%rsp)
	xorl	%eax, %eax
	movq	%rsp, %rbp
	movq	%rbp, %rsi
	call	__isoc99_scanf@PLT
	movq	%rbp, %rdi
	call	strlen@PLT
	testq	%rax, %rax
	je	.L2
	movl	%eax, %edx
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L23:
	leal	-6(%rdx), %esi
	leal	-5(%rdx), %eax
	movslq	%esi, %rcx
	cmpb	$101, (%rsp,%rcx)
	je	.L20
.L4:
	movslq	%eax, %rcx
	movl	%eax, %esi
	movzbl	(%rsp,%rcx), %ecx
	cmpb	$101, %cl
	je	.L21
	cmpb	$100, %cl
	jne	.L5
	leal	-4(%rdx), %ecx
	movslq	%ecx, %rcx
	cmpb	$114, (%rsp,%rcx)
	je	.L22
.L5:
	cmpl	$6, %edx
	jle	.L7
	leal	-7(%rdx), %esi
	movslq	%esi, %rcx
	cmpb	$100, (%rsp,%rcx)
	jne	.L7
	leal	-6(%rdx), %ecx
	movslq	%ecx, %rcx
	cmpb	$114, (%rsp,%rcx)
	jne	.L7
	cltq
	cmpb	$101, (%rsp,%rax)
	jne	.L7
	leal	-4(%rdx), %eax
	cltq
	cmpb	$97, (%rsp,%rax)
	jne	.L7
	leal	-3(%rdx), %eax
	cltq
	cmpb	$109, (%rsp,%rax)
	jne	.L7
	leal	-2(%rdx), %eax
	cltq
	cmpb	$101, (%rsp,%rax)
	jne	.L7
	subl	$1, %edx
	movslq	%edx, %rdx
	cmpb	$114, (%rsp,%rdx)
	jne	.L7
.L6:
	testl	%esi, %esi
	je	.L2
	movl	%esi, %edx
.L10:
	cmpl	$5, %edx
	jg	.L23
	je	.L24
.L7:
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
.L9:
	movq	100008(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L25
	addq	$100016, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	xorl	%eax, %eax
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L20:
	.cfi_restore_state
	movslq	%eax, %rcx
	cmpb	$114, (%rsp,%rcx)
	jne	.L4
	leal	-4(%rdx), %ecx
	movslq	%ecx, %rcx
	cmpb	$97, (%rsp,%rcx)
	jne	.L5
	leal	-3(%rdx), %ecx
	movslq	%ecx, %rcx
	cmpb	$115, (%rsp,%rcx)
	jne	.L5
	leal	-2(%rdx), %ecx
	movslq	%ecx, %rcx
	cmpb	$101, (%rsp,%rcx)
	jne	.L5
	leal	-1(%rdx), %ecx
	movslq	%ecx, %rcx
	cmpb	$114, (%rsp,%rcx)
	jne	.L5
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L21:
	leal	-4(%rdx), %ecx
	movslq	%ecx, %rcx
	cmpb	$114, (%rsp,%rcx)
	jne	.L5
	leal	-3(%rdx), %ecx
	movslq	%ecx, %rcx
	cmpb	$97, (%rsp,%rcx)
	jne	.L5
	leal	-2(%rdx), %ecx
	movslq	%ecx, %rcx
	cmpb	$115, (%rsp,%rcx)
	jne	.L5
	leal	-1(%rdx), %ecx
	movslq	%ecx, %rcx
	cmpb	$101, (%rsp,%rcx)
	jne	.L5
	jmp	.L6
.L22:
	leal	-3(%rdx), %ecx
	movslq	%ecx, %rcx
	cmpb	$101, (%rsp,%rcx)
	jne	.L5
	leal	-2(%rdx), %ecx
	movslq	%ecx, %rcx
	cmpb	$97, (%rsp,%rcx)
	jne	.L5
	leal	-1(%rdx), %ecx
	movslq	%ecx, %rcx
	cmpb	$109, (%rsp,%rcx)
	jne	.L5
	jmp	.L6
.L2:
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
	jmp	.L9
.L24:
	xorl	%eax, %eax
	jmp	.L4
.L25:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE35:
	.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	"NO"
.LC2:
	.string	"YES"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB35:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	leaq	-98304(%rsp), %r11
	.cfi_def_cfa 11, 98320
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$1712, %rsp
	.cfi_def_cfa_offset 100032
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 100008(%rsp)
	xorl	%eax, %eax
	movq	%rsp, %rbp
	movq	%rbp, %rsi
	call	__isoc99_scanf@PLT
	movq	%rbp, %rdi
	call	strlen@PLT
	testq	%rax, %rax
	je	.L2
	movl	%eax, %edx
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L23:
	leal	-6(%rdx), %esi
	leal	-5(%rdx), %eax
	movslq	%esi, %rcx
	cmpb	$101, (%rsp,%rcx)
	je	.L20
.L4:
	movslq	%eax, %rcx
	movl	%eax, %esi
	movzbl	(%rsp,%rcx), %ecx
	cmpb	$101, %cl
	je	.L21
	cmpb	$100, %cl
	jne	.L5
	leal	-4(%rdx), %ecx
	movslq	%ecx, %rcx
	cmpb	$114, (%rsp,%rcx)
	je	.L22
.L5:
	cmpl	$6, %edx
	jle	.L7
	leal	-7(%rdx), %esi
	movslq	%esi, %rcx
	cmpb	$100, (%rsp,%rcx)
	jne	.L7
	leal	-6(%rdx), %ecx
	movslq	%ecx, %rcx
	cmpb	$114, (%rsp,%rcx)
	jne	.L7
	cltq
	cmpb	$101, (%rsp,%rax)
	jne	.L7
	leal	-4(%rdx), %eax
	cltq
	cmpb	$97, (%rsp,%rax)
	jne	.L7
	leal	-3(%rdx), %eax
	cltq
	cmpb	$109, (%rsp,%rax)
	jne	.L7
	leal	-2(%rdx), %eax
	cltq
	cmpb	$101, (%rsp,%rax)
	jne	.L7
	subl	$1, %edx
	movslq	%edx, %rdx
	cmpb	$114, (%rsp,%rdx)
	jne	.L7
.L6:
	testl	%esi, %esi
	je	.L2
	movl	%esi, %edx
.L10:
	cmpl	$5, %edx
	jg	.L23
	je	.L24
.L7:
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
.L9:
	movq	100008(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L25
	addq	$100016, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	xorl	%eax, %eax
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L20:
	.cfi_restore_state
	movslq	%eax, %rcx
	cmpb	$114, (%rsp,%rcx)
	jne	.L4
	leal	-4(%rdx), %ecx
	movslq	%ecx, %rcx
	cmpb	$97, (%rsp,%rcx)
	jne	.L5
	leal	-3(%rdx), %ecx
	movslq	%ecx, %rcx
	cmpb	$115, (%rsp,%rcx)
	jne	.L5
	leal	-2(%rdx), %ecx
	movslq	%ecx, %rcx
	cmpb	$101, (%rsp,%rcx)
	jne	.L5
	leal	-1(%rdx), %ecx
	movslq	%ecx, %rcx
	cmpb	$114, (%rsp,%rcx)
	jne	.L5
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L21:
	leal	-4(%rdx), %ecx
	movslq	%ecx, %rcx
	cmpb	$114, (%rsp,%rcx)
	jne	.L5
	leal	-3(%rdx), %ecx
	movslq	%ecx, %rcx
	cmpb	$97, (%rsp,%rcx)
	jne	.L5
	leal	-2(%rdx), %ecx
	movslq	%ecx, %rcx
	cmpb	$115, (%rsp,%rcx)
	jne	.L5
	leal	-1(%rdx), %ecx
	movslq	%ecx, %rcx
	cmpb	$101, (%rsp,%rcx)
	jne	.L5
	jmp	.L6
.L22:
	leal	-3(%rdx), %ecx
	movslq	%ecx, %rcx
	cmpb	$101, (%rsp,%rcx)
	jne	.L5
	leal	-2(%rdx), %ecx
	movslq	%ecx, %rcx
	cmpb	$97, (%rsp,%rcx)
	jne	.L5
	leal	-1(%rdx), %ecx
	movslq	%ecx, %rcx
	cmpb	$109, (%rsp,%rcx)
	jne	.L5
	jmp	.L6
.L2:
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
	jmp	.L9
.L24:
	xorl	%eax, %eax
	jmp	.L4
.L25:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE35:
	.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<string.h>
int main(){
  char s[100002];
  scanf("%s",s);
  int len=strlen(s);
  while(len>0){
    if(len>=6 && s[len-6]=='e' && s[len-5]=='r' && s[len-4]=='a' && s[len-3]=='s' && s[len-2]=='e' && s[len-1]=='r')
      len-=6;
    else if(len>=5 && s[len-5]=='e' && s[len-4]=='r' && s[len-3]=='a' && s[len-2]=='s' && s[len-1]=='e')
      len-=5;
    else if(len>=5 && s[len-5]=='d' && s[len-4]=='r' && s[len-3]=='e' && s[len-2]=='a' && s[len-1]=='m')
      len-=5;
    else if(len>=7 && s[len-7]=='d' && s[len-6]=='r' && s[len-5]=='e' && s[len-4]=='a' && s[len-3]=='m' && s[len-2]=='e' && s[len-1]=='r')
      len-=7;
    else{
      puts("NO");
      return 0;
    }
  }
  puts("YES");
  return 0;
}

dre`merer
 maerdesare
 resaremaerd
 dre`meqer
 er`sedream
 ersaremaerd
 reqem`erd
 eq`sedream
 ersaremadrd
 reqem`erc

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<stdio.h>
#include<string.h>
int main(){
  char s[100002];
  scanf("%s",s);
  int len=strlen(s);
  while(len>0){
    if(len>=6 && s[len-6]=='e' && s[len-5]=='r' && s[len-4]=='a' && s[len-3]=='s' && s[len-2]=='e' && s[len-1]=='r')
      len-=6;
    else if(len>=5 && s[len-5]=='e' && s[len-4]=='r' && s[len-3]=='a' && s[len-2]=='s' && s[len-1]=='e')
      len-=5;
    else if(len>=5 && s[len-5]=='d' && s[len-4]=='r' && s[len-3]=='e' && s[len-2]=='a' && s[len-1]=='m')
      len-=5;
    else if(len>=7 && s[len-7]=='d' && s[len-6]=='r' && s[len-5]=='e' && s[len-4]=='a' && s[len-3]=='m' && s[len-2]=='e' && s[len-1]=='r')
      len-=7;
    else{
      puts("NO");
      return 0;
    }
  }
  puts("YES");
  return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%s"
.LC1:
	.string	"NO"
.LC2:
	.string	"YES"
	.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
	leaq	-98304(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$1728, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-100016(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	-100016(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	movl	%eax, -100020(%rbp)
	jmp	.L2
.L8:
	cmpl	$5, -100020(%rbp)
	jle	.L3
	movl	-100020(%rbp), %eax
	subl	$6, %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$101, %al
	jne	.L3
	movl	-100020(%rbp), %eax
	subl	$5, %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$114, %al
	jne	.L3
	movl	-100020(%rbp), %eax
	subl	$4, %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$97, %al
	jne	.L3
	movl	-100020(%rbp), %eax
	subl	$3, %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$115, %al
	jne	.L3
	movl	-100020(%rbp), %eax
	subl	$2, %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$101, %al
	jne	.L3
	movl	-100020(%rbp), %eax
	subl	$1, %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$114, %al
	jne	.L3
	subl	$6, -100020(%rbp)
	jmp	.L2
.L3:
	cmpl	$4, -100020(%rbp)
	jle	.L4
	movl	-100020(%rbp), %eax
	subl	$5, %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$101, %al
	jne	.L4
	movl	-100020(%rbp), %eax
	subl	$4, %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$114, %al
	jne	.L4
	movl	-100020(%rbp), %eax
	subl	$3, %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$97, %al
	jne	.L4
	movl	-100020(%rbp), %eax
	subl	$2, %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$115, %al
	jne	.L4
	movl	-100020(%rbp), %eax
	subl	$1, %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$101, %al
	jne	.L4
	subl	$5, -100020(%rbp)
	jmp	.L2
.L4:
	cmpl	$4, -100020(%rbp)
	jle	.L5
	movl	-100020(%rbp), %eax
	subl	$5, %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$100, %al
	jne	.L5
	movl	-100020(%rbp), %eax
	subl	$4, %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$114, %al
	jne	.L5
	movl	-100020(%rbp), %eax
	subl	$3, %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$101, %al
	jne	.L5
	movl	-100020(%rbp), %eax
	subl	$2, %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$97, %al
	jne	.L5
	movl	-100020(%rbp), %eax
	subl	$1, %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$109, %al
	jne	.L5
	subl	$5, -100020(%rbp)
	jmp	.L2
.L5:
	cmpl	$6, -100020(%rbp)
	jle	.L6
	movl	-100020(%rbp), %eax
	subl	$7, %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$100, %al
	jne	.L6
	movl	-100020(%rbp), %eax
	subl	$6, %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$114, %al
	jne	.L6
	movl	-100020(%rbp), %eax
	subl	$5, %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$101, %al
	jne	.L6
	movl	-100020(%rbp), %eax
	subl	$4, %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$97, %al
	jne	.L6
	movl	-100020(%rbp), %eax
	subl	$3, %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$109, %al
	jne	.L6
	movl	-100020(%rbp), %eax
	subl	$2, %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$101, %al
	jne	.L6
	movl	-100020(%rbp), %eax
	subl	$1, %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$114, %al
	jne	.L6
	subl	$7, -100020(%rbp)
	jmp	.L2
.L6:
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, %eax
	jmp	.L9
.L2:
	cmpl	$0, -100020(%rbp)
	jg	.L8
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, %eax
.L9:
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L10
	call	__stack_chk_fail@PLT
.L10:
	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	"%s"
.LC1:
	.string	"NO"
.LC2:
	.string	"YES"
	.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
	leaq	-98304(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$1728, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-100016(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	-100016(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	movl	%eax, -100020(%rbp)
	jmp	.L2
.L8:
	cmpl	$5, -100020(%rbp)
	jle	.L3
	movl	-100020(%rbp), %eax
	subl	$6, %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$101, %al
	jne	.L3
	movl	-100020(%rbp), %eax
	subl	$5, %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$114, %al
	jne	.L3
	movl	-100020(%rbp), %eax
	subl	$4, %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$97, %al
	jne	.L3
	movl	-100020(%rbp), %eax
	subl	$3, %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$115, %al
	jne	.L3
	movl	-100020(%rbp), %eax
	subl	$2, %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$101, %al
	jne	.L3
	movl	-100020(%rbp), %eax
	subl	$1, %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$114, %al
	jne	.L3
	subl	$6, -100020(%rbp)
	jmp	.L2
.L3:
	cmpl	$4, -100020(%rbp)
	jle	.L4
	movl	-100020(%rbp), %eax
	subl	$5, %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$101, %al
	jne	.L4
	movl	-100020(%rbp), %eax
	subl	$4, %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$114, %al
	jne	.L4
	movl	-100020(%rbp), %eax
	subl	$3, %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$97, %al
	jne	.L4
	movl	-100020(%rbp), %eax
	subl	$2, %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$115, %al
	jne	.L4
	movl	-100020(%rbp), %eax
	subl	$1, %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$101, %al
	jne	.L4
	subl	$5, -100020(%rbp)
	jmp	.L2
.L4:
	cmpl	$4, -100020(%rbp)
	jle	.L5
	movl	-100020(%rbp), %eax
	subl	$5, %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$100, %al
	jne	.L5
	movl	-100020(%rbp), %eax
	subl	$4, %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$114, %al
	jne	.L5
	movl	-100020(%rbp), %eax
	subl	$3, %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$101, %al
	jne	.L5
	movl	-100020(%rbp), %eax
	subl	$2, %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$97, %al
	jne	.L5
	movl	-100020(%rbp), %eax
	subl	$1, %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$109, %al
	jne	.L5
	subl	$5, -100020(%rbp)
	jmp	.L2
.L5:
	cmpl	$6, -100020(%rbp)
	jle	.L6
	movl	-100020(%rbp), %eax
	subl	$7, %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$100, %al
	jne	.L6
	movl	-100020(%rbp), %eax
	subl	$6, %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$114, %al
	jne	.L6
	movl	-100020(%rbp), %eax
	subl	$5, %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$101, %al
	jne	.L6
	movl	-100020(%rbp), %eax
	subl	$4, %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$97, %al
	jne	.L6
	movl	-100020(%rbp), %eax
	subl	$3, %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$109, %al
	jne	.L6
	movl	-100020(%rbp), %eax
	subl	$2, %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$101, %al
	jne	.L6
	movl	-100020(%rbp), %eax
	subl	$1, %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$114, %al
	jne	.L6
	subl	$7, -100020(%rbp)
	jmp	.L2
.L6:
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, %eax
	jmp	.L9
.L2:
	cmpl	$0, -100020(%rbp)
	jg	.L8
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, %eax
.L9:
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L10
	call	__stack_chk_fail@PLT
.L10:
	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:
