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>

int main(void){
  int n, a, b, c, d;
  scanf("%d%d%d%d%d", &n, &a, &b, &c, &d);

  char s[n];
  scanf("%s", s);

  int cnt = 0;
  for (int i = a; i < c; i++) {
    if(s[i] == '#'){
      cnt++;
      if(cnt == 2){
        printf("No\n");
        return 0;
      }
    }else cnt = 0;
  }
  for (int i = b; i < d; i++) {
    if(s[i] == '#'){
      cnt++;
      if(cnt == 2){
        printf("No\n");
        return 0;
      }
    }else cnt = 0;
  }

  if(c < d){
    printf("Yes\n");
    return 0;
  }else{
    int cnt = 0;
    for (int i = b-2; i <= d; i++) {
      if(s[i] == '.'){
        cnt++;
        if(cnt == 3){
          printf("Yes\n");
          return 0;
        }
      }else cnt = 0;
    }
  }

  printf("No\n");

  return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d%d%d%d%d"
.LC1:
	.string	"%s"
.LC2:
	.string	"No"
.LC3:
	.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
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$72, %rsp
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	movq	%rsp, %rax
	movq	%rax, %rbx
	leaq	-96(%rbp), %rdi
	leaq	-100(%rbp), %rsi
	leaq	-104(%rbp), %rcx
	leaq	-108(%rbp), %rdx
	leaq	-112(%rbp), %rax
	movq	%rdi, %r9
	movq	%rsi, %r8
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-112(%rbp), %eax
	movslq	%eax, %rdx
	subq	$1, %rdx
	movq	%rdx, -72(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, %r14
	movl	$0, %r15d
	movslq	%eax, %rdx
	movq	%rdx, %r12
	movl	$0, %r13d
	cltq
	movl	$16, %edx
	subq	$1, %rdx
	addq	%rdx, %rax
	movl	$16, %esi
	movl	$0, %edx
	divq	%rsi
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L2:
	cmpq	%rdx, %rsp
	je	.L3
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L2
.L3:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L4
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L4:
	movq	%rsp, %rax
	addq	$0, %rax
	movq	%rax, -64(%rbp)
	movq	-64(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -92(%rbp)
	movl	-108(%rbp), %eax
	movl	%eax, -88(%rbp)
	jmp	.L5
.L9:
	movq	-64(%rbp), %rdx
	movl	-88(%rbp), %eax
	cltq
	movzbl	(%rdx,%rax), %eax
	cmpb	$35, %al
	jne	.L6
	addl	$1, -92(%rbp)
	cmpl	$2, -92(%rbp)
	jne	.L7
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, %eax
	jmp	.L8
.L6:
	movl	$0, -92(%rbp)
.L7:
	addl	$1, -88(%rbp)
.L5:
	movl	-100(%rbp), %eax
	cmpl	%eax, -88(%rbp)
	jl	.L9
	movl	-104(%rbp), %eax
	movl	%eax, -84(%rbp)
	jmp	.L10
.L13:
	movq	-64(%rbp), %rdx
	movl	-84(%rbp), %eax
	cltq
	movzbl	(%rdx,%rax), %eax
	cmpb	$35, %al
	jne	.L11
	addl	$1, -92(%rbp)
	cmpl	$2, -92(%rbp)
	jne	.L12
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, %eax
	jmp	.L8
.L11:
	movl	$0, -92(%rbp)
.L12:
	addl	$1, -84(%rbp)
.L10:
	movl	-96(%rbp), %eax
	cmpl	%eax, -84(%rbp)
	jl	.L13
	movl	-100(%rbp), %edx
	movl	-96(%rbp), %eax
	cmpl	%eax, %edx
	jge	.L14
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, %eax
	jmp	.L8
.L14:
	movl	$0, -80(%rbp)
	movl	-104(%rbp), %eax
	subl	$2, %eax
	movl	%eax, -76(%rbp)
	jmp	.L15
.L18:
	movq	-64(%rbp), %rdx
	movl	-76(%rbp), %eax
	cltq
	movzbl	(%rdx,%rax), %eax
	cmpb	$46, %al
	jne	.L16
	addl	$1, -80(%rbp)
	cmpl	$3, -80(%rbp)
	jne	.L17
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, %eax
	jmp	.L8
.L16:
	movl	$0, -80(%rbp)
.L17:
	addl	$1, -76(%rbp)
.L15:
	movl	-96(%rbp), %eax
	cmpl	%eax, -76(%rbp)
	jle	.L18
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, %eax
.L8:
	movq	%rbx, %rsp
	movq	-56(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L20
	call	__stack_chk_fail@PLT
.L20:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.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%d%d%d"
.LC1:
	.string	"%s"
.LC2:
	.string	"No"
.LC3:
	.string	"Yes"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	leaq	.LC0(%rip), %rdi
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%rbx
	leaq	-36(%rbp), %rcx
	leaq	-40(%rbp), %rdx
	leaq	-44(%rbp), %rsi
	leaq	-28(%rbp), %r9
	subq	$40, %rsp
	.cfi_offset 3, -24
	leaq	-32(%rbp), %r8
	movq	%fs:40, %rax
	movq	%rax, -24(%rbp)
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movslq	-44(%rbp), %rax
	movq	%rsp, %rcx
	addq	$15, %rax
	movq	%rax, %rdx
	andq	$-4096, %rax
	subq	%rax, %rcx
	andq	$-16, %rdx
	cmpq	%rcx, %rsp
	je	.L3
.L44:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rcx, %rsp
	jne	.L44
.L3:
	andl	$4095, %edx
	subq	%rdx, %rsp
	testq	%rdx, %rdx
	jne	.L45
.L4:
	movq	%rsp, %rsi
	leaq	.LC1(%rip), %rdi
	xorl	%eax, %eax
	movq	%rsp, %rbx
	call	__isoc99_scanf@PLT
	movl	-40(%rbp), %esi
	movl	-32(%rbp), %r8d
	cmpl	%r8d, %esi
	jge	.L27
	leal	-1(%r8), %edx
	movslq	%esi, %rcx
	subl	%esi, %edx
	leaq	(%rsp,%rcx), %rax
	leaq	1(%rcx,%rdx), %rdx
	addq	%rsp, %rdx
	cmpb	$35, (%rsp,%rcx)
	je	.L6
.L7:
	addq	$1, %rax
	cmpq	%rax, %rdx
	je	.L27
	cmpb	$35, (%rax)
	je	.L6
.L10:
	addq	$1, %rax
	cmpq	%rdx, %rax
	je	.L27
	cmpb	$35, (%rax)
	jne	.L7
.L6:
	addq	$1, %rax
	cmpq	%rdx, %rax
	je	.L25
	cmpb	$35, (%rax)
	jne	.L10
.L9:
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
.L8:
	movq	-24(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L46
	movq	-8(%rbp), %rbx
	xorl	%eax, %eax
	leave
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
.L27:
	.cfi_restore_state
	xorl	%r9d, %r9d
.L5:
	movl	-36(%rbp), %eax
	movl	-28(%rbp), %edi
	cmpl	%edi, %eax
	jge	.L11
	leal	-1(%rdi), %ecx
	movslq	%eax, %rsi
	subl	%eax, %ecx
	leaq	(%rbx,%rsi), %rdx
	leaq	1(%rsi,%rcx), %rsi
	addq	%rbx, %rsi
	cmpb	$35, (%rdx)
	je	.L12
	.p2align 4,,10
	.p2align 3
.L16:
	leaq	1(%rdx), %rcx
	cmpq	%rsi, %rcx
	je	.L11
	cmpb	$35, 1(%rdx)
	je	.L47
	addq	$2, %rdx
	cmpq	%rdx, %rsi
	je	.L11
	cmpb	$35, (%rdx)
	jne	.L16
	jmp	.L18
.L12:
	subl	$1, %r9d
	je	.L9
.L18:
	addq	$1, %rdx
	cmpq	%rdx, %rsi
	jne	.L42
.L11:
	cmpl	%r8d, %edi
	jg	.L21
	subl	$2, %eax
	cmpl	%edi, %eax
	jg	.L9
	cltq
	xorl	%edx, %edx
	jmp	.L22
	.p2align 4,,10
	.p2align 3
.L28:
	xorl	%edx, %edx
.L20:
	addq	$1, %rax
	cmpl	%eax, %edi
	jl	.L9
.L22:
	cmpb	$46, (%rbx,%rax)
	jne	.L28
	addl	$1, %edx
	cmpl	$3, %edx
	jne	.L20
.L21:
	leaq	.LC3(%rip), %rdi
	call	puts@PLT
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L47:
	addq	$2, %rdx
	cmpq	%rdx, %rsi
	je	.L11
.L42:
	cmpb	$35, (%rdx)
	jne	.L16
	jmp	.L9
.L25:
	movl	$1, %r9d
	jmp	.L5
.L45:
	orq	$0, -8(%rsp,%rdx)
	jmp	.L4
.L46:
	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%d%d%d"
.LC1:
	.string	"%s"
.LC2:
	.string	"No"
.LC3:
	.string	"Yes"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	leaq	.LC0(%rip), %rdi
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%rbx
	leaq	-36(%rbp), %rcx
	leaq	-40(%rbp), %rdx
	leaq	-44(%rbp), %rsi
	leaq	-28(%rbp), %r9
	subq	$40, %rsp
	.cfi_offset 3, -24
	leaq	-32(%rbp), %r8
	movq	%fs:40, %rax
	movq	%rax, -24(%rbp)
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movslq	-44(%rbp), %rax
	movq	%rsp, %rcx
	addq	$15, %rax
	movq	%rax, %rdx
	andq	$-4096, %rax
	subq	%rax, %rcx
	andq	$-16, %rdx
	cmpq	%rcx, %rsp
	je	.L3
.L44:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rcx, %rsp
	jne	.L44
.L3:
	andl	$4095, %edx
	subq	%rdx, %rsp
	testq	%rdx, %rdx
	jne	.L45
.L4:
	movq	%rsp, %rsi
	leaq	.LC1(%rip), %rdi
	xorl	%eax, %eax
	movq	%rsp, %rbx
	call	__isoc99_scanf@PLT
	movl	-40(%rbp), %esi
	movl	-32(%rbp), %r8d
	cmpl	%r8d, %esi
	jge	.L27
	leal	-1(%r8), %edx
	movslq	%esi, %rcx
	subl	%esi, %edx
	leaq	(%rsp,%rcx), %rax
	leaq	1(%rcx,%rdx), %rdx
	addq	%rsp, %rdx
	cmpb	$35, (%rsp,%rcx)
	je	.L6
.L7:
	addq	$1, %rax
	cmpq	%rax, %rdx
	je	.L27
	cmpb	$35, (%rax)
	je	.L6
.L10:
	addq	$1, %rax
	cmpq	%rdx, %rax
	je	.L27
	cmpb	$35, (%rax)
	jne	.L7
.L6:
	addq	$1, %rax
	cmpq	%rdx, %rax
	je	.L25
	cmpb	$35, (%rax)
	jne	.L10
.L9:
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
.L8:
	movq	-24(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L46
	movq	-8(%rbp), %rbx
	xorl	%eax, %eax
	leave
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
.L27:
	.cfi_restore_state
	xorl	%r9d, %r9d
.L5:
	movl	-36(%rbp), %eax
	movl	-28(%rbp), %edi
	cmpl	%edi, %eax
	jge	.L11
	leal	-1(%rdi), %ecx
	movslq	%eax, %rsi
	subl	%eax, %ecx
	leaq	(%rbx,%rsi), %rdx
	leaq	1(%rsi,%rcx), %rsi
	addq	%rbx, %rsi
	cmpb	$35, (%rdx)
	je	.L12
	.p2align 4,,10
	.p2align 3
.L16:
	leaq	1(%rdx), %rcx
	cmpq	%rsi, %rcx
	je	.L11
	cmpb	$35, 1(%rdx)
	je	.L47
	addq	$2, %rdx
	cmpq	%rdx, %rsi
	je	.L11
	cmpb	$35, (%rdx)
	jne	.L16
	jmp	.L18
.L12:
	subl	$1, %r9d
	je	.L9
.L18:
	addq	$1, %rdx
	cmpq	%rdx, %rsi
	jne	.L42
.L11:
	cmpl	%r8d, %edi
	jg	.L21
	subl	$2, %eax
	cmpl	%edi, %eax
	jg	.L9
	cltq
	xorl	%edx, %edx
	jmp	.L22
	.p2align 4,,10
	.p2align 3
.L28:
	xorl	%edx, %edx
.L20:
	addq	$1, %rax
	cmpl	%eax, %edi
	jl	.L9
.L22:
	cmpb	$46, (%rbx,%rax)
	jne	.L28
	addl	$1, %edx
	cmpl	$3, %edx
	jne	.L20
.L21:
	leaq	.LC3(%rip), %rdi
	call	puts@PLT
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L47:
	addq	$2, %rdx
	cmpq	%rdx, %rsi
	je	.L11
.L42:
	cmpb	$35, (%rdx)
	jne	.L16
	jmp	.L9
.L25:
	movl	$1, %r9d
	jmp	.L5
.L45:
	orq	$0, -8(%rsp,%rdx)
	jmp	.L4
.L46:
	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>

int main(void){
  int n, a, b, c, d;
  scanf("%d%d%d%d%d", &n, &a, &b, &c, &d);

  char s[n];
  scanf("%s", s);

  int cnt = 0;
  for (int i = a; i < c; i++) {
    if(s[i] == '#'){
      cnt++;
      if(cnt == 2){
        printf("No\n");
        return 0;
      }
    }else cnt = 0;
  }
  for (int i = b; i < d; i++) {
    if(s[i] == '#'){
      cnt++;
      if(cnt == 2){
        printf("No\n");
        return 0;
      }
    }else cnt = 0;
  }

  if(c < d){
    printf("Yes\n");
    return 0;
  }else{
    int cnt = 0;
    for (int i = b-2; i <= d; i++) {
      if(s[i] == '.'){
        cnt++;
        if(cnt == 3){
          printf("Yes\n");
          return 0;
        }
      }else cnt = 0;
    }
  }

  printf("No\n");

  return 0;
}
9 1 3 7 6
.#..#..
 15 1 3 15 11
...#.#...#.#...
 4 1 3 7 6
.#..#..
 8 1 3 7 6
.#..#..
 15 0 3 15 13
...#.#...#.#...
 15 0 3 15 11
...#.#...#.#...
 1 1 3 7 6
.#..#..
 15 1 3 15 7
...#.#...#.#...
 8 1 4 7 6
.#..#..
 15 0 6 15 13
...#.#...#.#...

No
 Yes
 No
 No
 Yes
 Yes
 No
 No
 No
 Yes

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>

int main(void){
  int n, a, b, c, d;
  scanf("%d%d%d%d%d", &n, &a, &b, &c, &d);

  char s[n];
  scanf("%s", s);

  int cnt = 0;
  for (int i = a; i < c; i++) {
    if(s[i] == '#'){
      cnt++;
      if(cnt == 2){
        printf("No\n");
        return 0;
      }
    }else cnt = 0;
  }
  for (int i = b; i < d; i++) {
    if(s[i] == '#'){
      cnt++;
      if(cnt == 2){
        printf("No\n");
        return 0;
      }
    }else cnt = 0;
  }

  if(c < d){
    printf("Yes\n");
    return 0;
  }else{
    int cnt = 0;
    for (int i = b-2; i <= d; i++) {
      if(s[i] == '.'){
        cnt++;
        if(cnt == 3){
          printf("Yes\n");
          return 0;
        }
      }else cnt = 0;
    }
  }

  printf("No\n");

  return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d%d%d%d%d"
.LC1:
	.string	"%s"
.LC2:
	.string	"No"
.LC3:
	.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
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$72, %rsp
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	movq	%rsp, %rax
	movq	%rax, %rbx
	leaq	-96(%rbp), %rdi
	leaq	-100(%rbp), %rsi
	leaq	-104(%rbp), %rcx
	leaq	-108(%rbp), %rdx
	leaq	-112(%rbp), %rax
	movq	%rdi, %r9
	movq	%rsi, %r8
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-112(%rbp), %eax
	movslq	%eax, %rdx
	subq	$1, %rdx
	movq	%rdx, -72(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, %r14
	movl	$0, %r15d
	movslq	%eax, %rdx
	movq	%rdx, %r12
	movl	$0, %r13d
	cltq
	movl	$16, %edx
	subq	$1, %rdx
	addq	%rdx, %rax
	movl	$16, %esi
	movl	$0, %edx
	divq	%rsi
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L2:
	cmpq	%rdx, %rsp
	je	.L3
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L2
.L3:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L4
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L4:
	movq	%rsp, %rax
	addq	$0, %rax
	movq	%rax, -64(%rbp)
	movq	-64(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -92(%rbp)
	movl	-108(%rbp), %eax
	movl	%eax, -88(%rbp)
	jmp	.L5
.L9:
	movq	-64(%rbp), %rdx
	movl	-88(%rbp), %eax
	cltq
	movzbl	(%rdx,%rax), %eax
	cmpb	$35, %al
	jne	.L6
	addl	$1, -92(%rbp)
	cmpl	$2, -92(%rbp)
	jne	.L7
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, %eax
	jmp	.L8
.L6:
	movl	$0, -92(%rbp)
.L7:
	addl	$1, -88(%rbp)
.L5:
	movl	-100(%rbp), %eax
	cmpl	%eax, -88(%rbp)
	jl	.L9
	movl	-104(%rbp), %eax
	movl	%eax, -84(%rbp)
	jmp	.L10
.L13:
	movq	-64(%rbp), %rdx
	movl	-84(%rbp), %eax
	cltq
	movzbl	(%rdx,%rax), %eax
	cmpb	$35, %al
	jne	.L11
	addl	$1, -92(%rbp)
	cmpl	$2, -92(%rbp)
	jne	.L12
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, %eax
	jmp	.L8
.L11:
	movl	$0, -92(%rbp)
.L12:
	addl	$1, -84(%rbp)
.L10:
	movl	-96(%rbp), %eax
	cmpl	%eax, -84(%rbp)
	jl	.L13
	movl	-100(%rbp), %edx
	movl	-96(%rbp), %eax
	cmpl	%eax, %edx
	jge	.L14
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, %eax
	jmp	.L8
.L14:
	movl	$0, -80(%rbp)
	movl	-104(%rbp), %eax
	subl	$2, %eax
	movl	%eax, -76(%rbp)
	jmp	.L15
.L18:
	movq	-64(%rbp), %rdx
	movl	-76(%rbp), %eax
	cltq
	movzbl	(%rdx,%rax), %eax
	cmpb	$46, %al
	jne	.L16
	addl	$1, -80(%rbp)
	cmpl	$3, -80(%rbp)
	jne	.L17
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, %eax
	jmp	.L8
.L16:
	movl	$0, -80(%rbp)
.L17:
	addl	$1, -76(%rbp)
.L15:
	movl	-96(%rbp), %eax
	cmpl	%eax, -76(%rbp)
	jle	.L18
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, %eax
.L8:
	movq	%rbx, %rsp
	movq	-56(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L20
	call	__stack_chk_fail@PLT
.L20:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.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%d%d%d"
.LC1:
	.string	"%s"
.LC2:
	.string	"No"
.LC3:
	.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
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$72, %rsp
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	movq	%rsp, %rax
	movq	%rax, %rbx
	leaq	-96(%rbp), %rdi
	leaq	-100(%rbp), %rsi
	leaq	-104(%rbp), %rcx
	leaq	-108(%rbp), %rdx
	leaq	-112(%rbp), %rax
	movq	%rdi, %r9
	movq	%rsi, %r8
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-112(%rbp), %eax
	movslq	%eax, %rdx
	subq	$1, %rdx
	movq	%rdx, -72(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, %r14
	movl	$0, %r15d
	movslq	%eax, %rdx
	movq	%rdx, %r12
	movl	$0, %r13d
	cltq
	movl	$16, %edx
	subq	$1, %rdx
	addq	%rdx, %rax
	movl	$16, %esi
	movl	$0, %edx
	divq	%rsi
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L2:
	cmpq	%rdx, %rsp
	je	.L3
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L2
.L3:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L4
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L4:
	movq	%rsp, %rax
	addq	$0, %rax
	movq	%rax, -64(%rbp)
	movq	-64(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -92(%rbp)
	movl	-108(%rbp), %eax
	movl	%eax, -88(%rbp)
	jmp	.L5
.L9:
	movq	-64(%rbp), %rdx
	movl	-88(%rbp), %eax
	cltq
	movzbl	(%rdx,%rax), %eax
	cmpb	$35, %al
	jne	.L6
	addl	$1, -92(%rbp)
	cmpl	$2, -92(%rbp)
	jne	.L7
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, %eax
	jmp	.L8
.L6:
	movl	$0, -92(%rbp)
.L7:
	addl	$1, -88(%rbp)
.L5:
	movl	-100(%rbp), %eax
	cmpl	%eax, -88(%rbp)
	jl	.L9
	movl	-104(%rbp), %eax
	movl	%eax, -84(%rbp)
	jmp	.L10
.L13:
	movq	-64(%rbp), %rdx
	movl	-84(%rbp), %eax
	cltq
	movzbl	(%rdx,%rax), %eax
	cmpb	$35, %al
	jne	.L11
	addl	$1, -92(%rbp)
	cmpl	$2, -92(%rbp)
	jne	.L12
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, %eax
	jmp	.L8
.L11:
	movl	$0, -92(%rbp)
.L12:
	addl	$1, -84(%rbp)
.L10:
	movl	-96(%rbp), %eax
	cmpl	%eax, -84(%rbp)
	jl	.L13
	movl	-100(%rbp), %edx
	movl	-96(%rbp), %eax
	cmpl	%eax, %edx
	jge	.L14
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, %eax
	jmp	.L8
.L14:
	movl	$0, -80(%rbp)
	movl	-104(%rbp), %eax
	subl	$2, %eax
	movl	%eax, -76(%rbp)
	jmp	.L15
.L18:
	movq	-64(%rbp), %rdx
	movl	-76(%rbp), %eax
	cltq
	movzbl	(%rdx,%rax), %eax
	cmpb	$46, %al
	jne	.L16
	addl	$1, -80(%rbp)
	cmpl	$3, -80(%rbp)
	jne	.L17
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, %eax
	jmp	.L8
.L16:
	movl	$0, -80(%rbp)
.L17:
	addl	$1, -76(%rbp)
.L15:
	movl	-96(%rbp), %eax
	cmpl	%eax, -76(%rbp)
	jle	.L18
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, %eax
.L8:
	movq	%rbx, %rsp
	movq	-56(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L20
	call	__stack_chk_fail@PLT
.L20:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.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:
