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

int main(void){

    char S[100001];

    scanf("%s", S);

    int len = strlen(S);

    int t = 0;

    while(true){
        if(S[t] == 'd' && S[t+1] == 'r' && S[t+2] == 'e' && S[t+3] == 'a' && S[t+4] == 'm' && S[t+5] == 'e' && S[t+6] == 'r' && S[t+7] != 'a'){
            t += 7;
        }else if(S[t] == 'd' && S[t+1] == 'r' && S[t+2] == 'e' && S[t+3] == 'a' && S[t+4] == 'm'){
            t += 5;
        }else if(S[t] == 'e' && S[t+1] == 'r' && S[t+2] == 'a' && S[t+3] == 's' && S[t+4] == 'e' && S[t+5] == 'r' && S[t+6] != 'a'){
            t += 6;
        }else if(S[t] == 'e' && S[t+1] == 'r' && S[t+2] == 'a' && S[t+3] == 's' && S[t+4] == 'e'){
            t += 5;
        }else{
            break;
        }
    }

    if(t == len){
        printf("YES\n");
    }else{
        printf("NO\n");
    }

    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
	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)
	movl	$0, -100024(%rbp)
.L7:
	movl	-100024(%rbp), %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$100, %al
	jne	.L2
	movl	-100024(%rbp), %eax
	addl	$1, %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$114, %al
	jne	.L2
	movl	-100024(%rbp), %eax
	addl	$2, %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$101, %al
	jne	.L2
	movl	-100024(%rbp), %eax
	addl	$3, %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$97, %al
	jne	.L2
	movl	-100024(%rbp), %eax
	addl	$4, %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$109, %al
	jne	.L2
	movl	-100024(%rbp), %eax
	addl	$5, %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$101, %al
	jne	.L2
	movl	-100024(%rbp), %eax
	addl	$6, %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$114, %al
	jne	.L2
	movl	-100024(%rbp), %eax
	addl	$7, %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$97, %al
	je	.L2
	addl	$7, -100024(%rbp)
	jmp	.L3
.L2:
	movl	-100024(%rbp), %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$100, %al
	jne	.L4
	movl	-100024(%rbp), %eax
	addl	$1, %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$114, %al
	jne	.L4
	movl	-100024(%rbp), %eax
	addl	$2, %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$101, %al
	jne	.L4
	movl	-100024(%rbp), %eax
	addl	$3, %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$97, %al
	jne	.L4
	movl	-100024(%rbp), %eax
	addl	$4, %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$109, %al
	jne	.L4
	addl	$5, -100024(%rbp)
	jmp	.L3
.L4:
	movl	-100024(%rbp), %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$101, %al
	jne	.L5
	movl	-100024(%rbp), %eax
	addl	$1, %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$114, %al
	jne	.L5
	movl	-100024(%rbp), %eax
	addl	$2, %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$97, %al
	jne	.L5
	movl	-100024(%rbp), %eax
	addl	$3, %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$115, %al
	jne	.L5
	movl	-100024(%rbp), %eax
	addl	$4, %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$101, %al
	jne	.L5
	movl	-100024(%rbp), %eax
	addl	$5, %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$114, %al
	jne	.L5
	movl	-100024(%rbp), %eax
	addl	$6, %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$97, %al
	je	.L5
	addl	$6, -100024(%rbp)
	jmp	.L3
.L5:
	movl	-100024(%rbp), %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$101, %al
	jne	.L6
	movl	-100024(%rbp), %eax
	addl	$1, %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$114, %al
	jne	.L6
	movl	-100024(%rbp), %eax
	addl	$2, %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$97, %al
	jne	.L6
	movl	-100024(%rbp), %eax
	addl	$3, %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$115, %al
	jne	.L6
	movl	-100024(%rbp), %eax
	addl	$4, %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$101, %al
	jne	.L6
	addl	$5, -100024(%rbp)
.L3:
	jmp	.L7
.L6:
	movl	-100024(%rbp), %eax
	cmpl	-100020(%rbp), %eax
	jne	.L8
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L9
.L8:
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
.L9:
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L11
	call	__stack_chk_fail@PLT
.L11:
	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	-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
	movq	%rax, %rcx
	xorl	%eax, %eax
	.p2align 4,,10
	.p2align 3
.L2:
	movslq	%eax, %rdx
	movzbl	(%rsp,%rdx), %edx
	cmpb	$100, %dl
	je	.L17
	cmpb	$101, %dl
	je	.L18
.L4:
	cmpl	%ecx, %eax
	je	.L19
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
.L9:
	movq	100008(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L20
	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
.L17:
	.cfi_restore_state
	leal	1(%rax), %edx
	movslq	%edx, %rdx
	cmpb	$114, (%rsp,%rdx)
	jne	.L4
	leal	2(%rax), %edx
	movslq	%edx, %rdx
	cmpb	$101, (%rsp,%rdx)
	jne	.L4
	leal	3(%rax), %edx
	movslq	%edx, %rsi
	cmpb	$97, (%rsp,%rsi)
	je	.L21
.L5:
	movslq	%edx, %rdx
	cmpb	$97, (%rsp,%rdx)
	jne	.L4
	leal	4(%rax), %edx
	movslq	%edx, %rdx
	cmpb	$109, (%rsp,%rdx)
	jne	.L4
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L18:
	leal	1(%rax), %edx
	movslq	%edx, %rdx
	cmpb	$114, (%rsp,%rdx)
	jne	.L4
	leal	2(%rax), %edx
	movslq	%edx, %rdx
	cmpb	$97, (%rsp,%rdx)
	jne	.L4
	leal	3(%rax), %edx
	movslq	%edx, %rsi
	cmpb	$115, (%rsp,%rsi)
	je	.L22
.L7:
	movslq	%edx, %rdx
	cmpb	$115, (%rsp,%rdx)
	jne	.L4
	leal	4(%rax), %edx
	movslq	%edx, %rdx
	cmpb	$101, (%rsp,%rdx)
	jne	.L4
.L14:
	addl	$5, %eax
	jmp	.L2
.L19:
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
	jmp	.L9
.L21:
	leal	4(%rax), %esi
	movslq	%esi, %rsi
	cmpb	$109, (%rsp,%rsi)
	jne	.L5
	leal	5(%rax), %esi
	movslq	%esi, %rsi
	cmpb	$101, (%rsp,%rsi)
	jne	.L5
	leal	6(%rax), %esi
	movslq	%esi, %rsi
	cmpb	$114, (%rsp,%rsi)
	jne	.L5
	leal	7(%rax), %esi
	movslq	%esi, %rdi
	cmpb	$97, (%rsp,%rdi)
	je	.L5
	movl	%esi, %eax
	jmp	.L2
.L22:
	leal	4(%rax), %esi
	movslq	%esi, %rsi
	cmpb	$101, (%rsp,%rsi)
	jne	.L7
	leal	5(%rax), %esi
	movslq	%esi, %rsi
	cmpb	$114, (%rsp,%rsi)
	jne	.L7
	leal	6(%rax), %esi
	movslq	%esi, %rdi
	cmpb	$97, (%rsp,%rdi)
	je	.L7
	movl	%esi, %eax
	jmp	.L2
.L20:
	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	-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
	movq	%rax, %rcx
	xorl	%eax, %eax
	.p2align 4,,10
	.p2align 3
.L2:
	movslq	%eax, %rdx
	movzbl	(%rsp,%rdx), %edx
	cmpb	$100, %dl
	je	.L17
	cmpb	$101, %dl
	je	.L18
.L4:
	cmpl	%ecx, %eax
	je	.L19
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
.L9:
	movq	100008(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L20
	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
.L17:
	.cfi_restore_state
	leal	1(%rax), %edx
	movslq	%edx, %rdx
	cmpb	$114, (%rsp,%rdx)
	jne	.L4
	leal	2(%rax), %edx
	movslq	%edx, %rdx
	cmpb	$101, (%rsp,%rdx)
	jne	.L4
	leal	3(%rax), %edx
	movslq	%edx, %rsi
	cmpb	$97, (%rsp,%rsi)
	je	.L21
.L5:
	movslq	%edx, %rdx
	cmpb	$97, (%rsp,%rdx)
	jne	.L4
	leal	4(%rax), %edx
	movslq	%edx, %rdx
	cmpb	$109, (%rsp,%rdx)
	jne	.L4
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L18:
	leal	1(%rax), %edx
	movslq	%edx, %rdx
	cmpb	$114, (%rsp,%rdx)
	jne	.L4
	leal	2(%rax), %edx
	movslq	%edx, %rdx
	cmpb	$97, (%rsp,%rdx)
	jne	.L4
	leal	3(%rax), %edx
	movslq	%edx, %rsi
	cmpb	$115, (%rsp,%rsi)
	je	.L22
.L7:
	movslq	%edx, %rdx
	cmpb	$115, (%rsp,%rdx)
	jne	.L4
	leal	4(%rax), %edx
	movslq	%edx, %rdx
	cmpb	$101, (%rsp,%rdx)
	jne	.L4
.L14:
	addl	$5, %eax
	jmp	.L2
.L19:
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
	jmp	.L9
.L21:
	leal	4(%rax), %esi
	movslq	%esi, %rsi
	cmpb	$109, (%rsp,%rsi)
	jne	.L5
	leal	5(%rax), %esi
	movslq	%esi, %rsi
	cmpb	$101, (%rsp,%rsi)
	jne	.L5
	leal	6(%rax), %esi
	movslq	%esi, %rsi
	cmpb	$114, (%rsp,%rsi)
	jne	.L5
	leal	7(%rax), %esi
	movslq	%esi, %rdi
	cmpb	$97, (%rsp,%rdi)
	je	.L5
	movl	%esi, %eax
	jmp	.L2
.L22:
	leal	4(%rax), %esi
	movslq	%esi, %rsi
	cmpb	$101, (%rsp,%rsi)
	jne	.L7
	leal	5(%rax), %esi
	movslq	%esi, %rsi
	cmpb	$114, (%rsp,%rsi)
	jne	.L7
	leal	6(%rax), %esi
	movslq	%esi, %rdi
	cmpb	$97, (%rsp,%rdi)
	je	.L7
	movl	%esi, %eax
	jmp	.L2
.L20:
	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 <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <stdbool.h>
#include <math.h>

int main(void){

    char S[100001];

    scanf("%s", S);

    int len = strlen(S);

    int t = 0;

    while(true){
        if(S[t] == 'd' && S[t+1] == 'r' && S[t+2] == 'e' && S[t+3] == 'a' && S[t+4] == 'm' && S[t+5] == 'e' && S[t+6] == 'r' && S[t+7] != 'a'){
            t += 7;
        }else if(S[t] == 'd' && S[t+1] == 'r' && S[t+2] == 'e' && S[t+3] == 'a' && S[t+4] == 'm'){
            t += 5;
        }else if(S[t] == 'e' && S[t+1] == 'r' && S[t+2] == 'a' && S[t+3] == 's' && S[t+4] == 'e' && S[t+5] == 'r' && S[t+6] != 'a'){
            t += 6;
        }else if(S[t] == 'e' && S[t+1] == 'r' && S[t+2] == 'a' && S[t+3] == 's' && S[t+4] == 'e'){
            t += 5;
        }else{
            break;
        }
    }

    if(t == len){
        printf("YES\n");
    }else{
        printf("NO\n");
    }

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

int main(void){

    char S[100001];

    scanf("%s", S);

    int len = strlen(S);

    int t = 0;

    while(true){
        if(S[t] == 'd' && S[t+1] == 'r' && S[t+2] == 'e' && S[t+3] == 'a' && S[t+4] == 'm' && S[t+5] == 'e' && S[t+6] == 'r' && S[t+7] != 'a'){
            t += 7;
        }else if(S[t] == 'd' && S[t+1] == 'r' && S[t+2] == 'e' && S[t+3] == 'a' && S[t+4] == 'm'){
            t += 5;
        }else if(S[t] == 'e' && S[t+1] == 'r' && S[t+2] == 'a' && S[t+3] == 's' && S[t+4] == 'e' && S[t+5] == 'r' && S[t+6] != 'a'){
            t += 6;
        }else if(S[t] == 'e' && S[t+1] == 'r' && S[t+2] == 'a' && S[t+3] == 's' && S[t+4] == 'e'){
            t += 5;
        }else{
            break;
        }
    }

    if(t == len){
        printf("YES\n");
    }else{
        printf("NO\n");
    }

    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
	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)
	movl	$0, -100024(%rbp)
.L7:
	movl	-100024(%rbp), %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$100, %al
	jne	.L2
	movl	-100024(%rbp), %eax
	addl	$1, %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$114, %al
	jne	.L2
	movl	-100024(%rbp), %eax
	addl	$2, %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$101, %al
	jne	.L2
	movl	-100024(%rbp), %eax
	addl	$3, %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$97, %al
	jne	.L2
	movl	-100024(%rbp), %eax
	addl	$4, %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$109, %al
	jne	.L2
	movl	-100024(%rbp), %eax
	addl	$5, %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$101, %al
	jne	.L2
	movl	-100024(%rbp), %eax
	addl	$6, %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$114, %al
	jne	.L2
	movl	-100024(%rbp), %eax
	addl	$7, %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$97, %al
	je	.L2
	addl	$7, -100024(%rbp)
	jmp	.L3
.L2:
	movl	-100024(%rbp), %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$100, %al
	jne	.L4
	movl	-100024(%rbp), %eax
	addl	$1, %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$114, %al
	jne	.L4
	movl	-100024(%rbp), %eax
	addl	$2, %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$101, %al
	jne	.L4
	movl	-100024(%rbp), %eax
	addl	$3, %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$97, %al
	jne	.L4
	movl	-100024(%rbp), %eax
	addl	$4, %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$109, %al
	jne	.L4
	addl	$5, -100024(%rbp)
	jmp	.L3
.L4:
	movl	-100024(%rbp), %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$101, %al
	jne	.L5
	movl	-100024(%rbp), %eax
	addl	$1, %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$114, %al
	jne	.L5
	movl	-100024(%rbp), %eax
	addl	$2, %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$97, %al
	jne	.L5
	movl	-100024(%rbp), %eax
	addl	$3, %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$115, %al
	jne	.L5
	movl	-100024(%rbp), %eax
	addl	$4, %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$101, %al
	jne	.L5
	movl	-100024(%rbp), %eax
	addl	$5, %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$114, %al
	jne	.L5
	movl	-100024(%rbp), %eax
	addl	$6, %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$97, %al
	je	.L5
	addl	$6, -100024(%rbp)
	jmp	.L3
.L5:
	movl	-100024(%rbp), %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$101, %al
	jne	.L6
	movl	-100024(%rbp), %eax
	addl	$1, %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$114, %al
	jne	.L6
	movl	-100024(%rbp), %eax
	addl	$2, %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$97, %al
	jne	.L6
	movl	-100024(%rbp), %eax
	addl	$3, %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$115, %al
	jne	.L6
	movl	-100024(%rbp), %eax
	addl	$4, %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$101, %al
	jne	.L6
	addl	$5, -100024(%rbp)
.L3:
	jmp	.L7
.L6:
	movl	-100024(%rbp), %eax
	cmpl	-100020(%rbp), %eax
	jne	.L8
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L9
.L8:
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
.L9:
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L11
	call	__stack_chk_fail@PLT
.L11:
	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
	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)
	movl	$0, -100024(%rbp)
.L7:
	movl	-100024(%rbp), %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$100, %al
	jne	.L2
	movl	-100024(%rbp), %eax
	addl	$1, %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$114, %al
	jne	.L2
	movl	-100024(%rbp), %eax
	addl	$2, %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$101, %al
	jne	.L2
	movl	-100024(%rbp), %eax
	addl	$3, %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$97, %al
	jne	.L2
	movl	-100024(%rbp), %eax
	addl	$4, %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$109, %al
	jne	.L2
	movl	-100024(%rbp), %eax
	addl	$5, %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$101, %al
	jne	.L2
	movl	-100024(%rbp), %eax
	addl	$6, %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$114, %al
	jne	.L2
	movl	-100024(%rbp), %eax
	addl	$7, %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$97, %al
	je	.L2
	addl	$7, -100024(%rbp)
	jmp	.L3
.L2:
	movl	-100024(%rbp), %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$100, %al
	jne	.L4
	movl	-100024(%rbp), %eax
	addl	$1, %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$114, %al
	jne	.L4
	movl	-100024(%rbp), %eax
	addl	$2, %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$101, %al
	jne	.L4
	movl	-100024(%rbp), %eax
	addl	$3, %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$97, %al
	jne	.L4
	movl	-100024(%rbp), %eax
	addl	$4, %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$109, %al
	jne	.L4
	addl	$5, -100024(%rbp)
	jmp	.L3
.L4:
	movl	-100024(%rbp), %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$101, %al
	jne	.L5
	movl	-100024(%rbp), %eax
	addl	$1, %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$114, %al
	jne	.L5
	movl	-100024(%rbp), %eax
	addl	$2, %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$97, %al
	jne	.L5
	movl	-100024(%rbp), %eax
	addl	$3, %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$115, %al
	jne	.L5
	movl	-100024(%rbp), %eax
	addl	$4, %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$101, %al
	jne	.L5
	movl	-100024(%rbp), %eax
	addl	$5, %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$114, %al
	jne	.L5
	movl	-100024(%rbp), %eax
	addl	$6, %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$97, %al
	je	.L5
	addl	$6, -100024(%rbp)
	jmp	.L3
.L5:
	movl	-100024(%rbp), %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$101, %al
	jne	.L6
	movl	-100024(%rbp), %eax
	addl	$1, %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$114, %al
	jne	.L6
	movl	-100024(%rbp), %eax
	addl	$2, %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$97, %al
	jne	.L6
	movl	-100024(%rbp), %eax
	addl	$3, %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$115, %al
	jne	.L6
	movl	-100024(%rbp), %eax
	addl	$4, %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$101, %al
	jne	.L6
	addl	$5, -100024(%rbp)
.L3:
	jmp	.L7
.L6:
	movl	-100024(%rbp), %eax
	cmpl	-100020(%rbp), %eax
	jne	.L8
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L9
.L8:
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
.L9:
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L11
	call	__stack_chk_fail@PLT
.L11:
	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:
