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

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

int  main()
{
  int n,m;
  char a[51][51]={},b[51][51]={};
  int i,j;
  int tmp=0;
  
  scanf("%d%d",&n,&m);
  
  for(i=0;i<n;i++)
  {
    scanf("%s",&a[i]);
  }
  
  for(i=0;i<m;i++)
  {
    scanf("%s",&b[i]);
  }
  
  for(i=0;i<n;i++)
  {
    for(j=0;j<m;j++)
    {
      if(strstr(a[i],b[j])==NULL)
      {
        printf("No\n");
        return 0;
      }
        else
        {
          tmp=1;
        }
    }
  }

  
  if(tmp==1)
  {
    printf("Yes\n");
  }
  return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d%d"
.LC1:
	.string	"%s"
.LC2:
	.string	"No"
.LC3:
	.string	"Yes"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB35:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	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	$4096, %rsp
	.cfi_def_cfa_offset 4152
	orq	$0, (%rsp)
	subq	$1160, %rsp
	.cfi_def_cfa_offset 5312
	movl	$325, %ecx
	movq	%fs:40, %rax
	movq	%rax, 5240(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rbp
	leaq	12(%rsp), %rdx
	movq	%rbp, %rdi
	leaq	2624(%rsp), %r14
	leaq	8(%rsp), %rsi
	rep stosq
	movl	$325, %ecx
	movb	$0, (%rdi)
	movq	%r14, %rdi
	rep stosq
	movb	$0, (%rdi)
	leaq	.LC0(%rip), %rdi
	call	__isoc99_scanf@PLT
	movl	8(%rsp), %eax
	testl	%eax, %eax
	jle	.L2
	movq	%rbp, %r12
	xorl	%ebx, %ebx
	leaq	.LC1(%rip), %r15
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%r12, %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	addq	$51, %r12
	cmpl	%ebx, 8(%rsp)
	jg	.L3
	movl	12(%rsp), %r12d
	testl	%r12d, %r12d
	jle	.L4
.L13:
	movq	%r14, %r13
	xorl	%ebx, %ebx
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%r13, %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %r12d
	addq	$51, %r13
	cmpl	%ebx, %r12d
	jg	.L5
.L4:
	movl	8(%rsp), %eax
	testl	%eax, %eax
	jle	.L6
	subl	$1, %eax
	leaq	(%rax,%rax,2), %rax
	movq	%rax, %rdx
	salq	$4, %rdx
	addq	%rdx, %rax
	leaq	67(%rsp,%rax), %r15
	leal	-1(%r12), %eax
	leaq	(%rax,%rax,2), %rax
	movq	%rax, %rdx
	salq	$4, %rdx
	addq	%rdx, %rax
	leaq	2675(%rsp,%rax), %r13
	xorl	%eax, %eax
.L7:
	movq	%r14, %rbx
	testl	%r12d, %r12d
	jg	.L9
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L8:
	addq	$51, %rbx
	cmpq	%rbx, %r13
	je	.L23
.L9:
	movq	%rbx, %rsi
	movq	%rbp, %rdi
	call	strstr@PLT
	testq	%rax, %rax
	jne	.L8
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
.L6:
	movq	5240(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L24
	addq	$5256, %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
.L23:
	.cfi_restore_state
	movl	$1, %eax
.L12:
	addq	$51, %rbp
	cmpq	%r15, %rbp
	jne	.L7
	subl	$1, %eax
	jne	.L6
	leaq	.LC3(%rip), %rdi
	call	puts@PLT
	jmp	.L6
.L2:
	cmpl	$0, 12(%rsp)
	leaq	.LC1(%rip), %r15
	jg	.L13
	jmp	.L6
.L24:
	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:
```

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.
Optimized Assembly Code:

user
```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d%d"
.LC1:
	.string	"%s"
.LC2:
	.string	"No"
.LC3:
	.string	"Yes"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB35:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	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	$4096, %rsp
	.cfi_def_cfa_offset 4152
	orq	$0, (%rsp)
	subq	$1160, %rsp
	.cfi_def_cfa_offset 5312
	movl	$325, %ecx
	movq	%fs:40, %rax
	movq	%rax, 5240(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rbp
	leaq	12(%rsp), %rdx
	movq	%rbp, %rdi
	leaq	2624(%rsp), %r14
	leaq	8(%rsp), %rsi
	rep stosq
	movl	$325, %ecx
	movb	$0, (%rdi)
	movq	%r14, %rdi
	rep stosq
	movb	$0, (%rdi)
	leaq	.LC0(%rip), %rdi
	call	__isoc99_scanf@PLT
	movl	8(%rsp), %eax
	testl	%eax, %eax
	jle	.L2
	movq	%rbp, %r12
	xorl	%ebx, %ebx
	leaq	.LC1(%rip), %r15
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%r12, %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	addq	$51, %r12
	cmpl	%ebx, 8(%rsp)
	jg	.L3
	movl	12(%rsp), %r12d
	testl	%r12d, %r12d
	jle	.L4
.L13:
	movq	%r14, %r13
	xorl	%ebx, %ebx
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%r13, %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %r12d
	addq	$51, %r13
	cmpl	%ebx, %r12d
	jg	.L5
.L4:
	movl	8(%rsp), %eax
	testl	%eax, %eax
	jle	.L6
	subl	$1, %eax
	leaq	(%rax,%rax,2), %rax
	movq	%rax, %rdx
	salq	$4, %rdx
	addq	%rdx, %rax
	leaq	67(%rsp,%rax), %r15
	leal	-1(%r12), %eax
	leaq	(%rax,%rax,2), %rax
	movq	%rax, %rdx
	salq	$4, %rdx
	addq	%rdx, %rax
	leaq	2675(%rsp,%rax), %r13
	xorl	%eax, %eax
.L7:
	movq	%r14, %rbx
	testl	%r12d, %r12d
	jg	.L9
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L8:
	addq	$51, %rbx
	cmpq	%rbx, %r13
	je	.L23
.L9:
	movq	%rbx, %rsi
	movq	%rbp, %rdi
	call	strstr@PLT
	testq	%rax, %rax
	jne	.L8
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
.L6:
	movq	5240(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L24
	addq	$5256, %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
.L23:
	.cfi_restore_state
	movl	$1, %eax
.L12:
	addq	$51, %rbp
	cmpq	%r15, %rbp
	jne	.L7
	subl	$1, %eax
	jne	.L6
	leaq	.LC3(%rip), %rdi
	call	puts@PLT
	jmp	.L6
.L2:
	cmpl	$0, 12(%rsp)
	leaq	.LC1(%rip), %r15
	jg	.L13
	jmp	.L6
.L24:
	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
```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d%d"
.LC1:
	.string	"%s"
.LC2:
	.string	"No"
.LC3:
	.string	"Yes"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB35:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	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	$4096, %rsp
	.cfi_def_cfa_offset 4152
	orq	$0, (%rsp)
	subq	$1160, %rsp
	.cfi_def_cfa_offset 5312
	movl	$325, %ecx
	movq	%fs:40, %rax
	movq	%rax, 5240(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rbp
	leaq	12(%rsp), %rdx
	movq	%rbp, %rdi
	leaq	2624(%rsp), %r14
	leaq	8(%rsp), %rsi
	rep stosq
	movl	$325, %ecx
	movb	$0, (%rdi)
	movq	%r14, %rdi
	rep stosq
	movb	$0, (%rdi)
	leaq	.LC0(%rip), %rdi
	call	__isoc99_scanf@PLT
	movl	8(%rsp), %eax
	testl	%eax, %eax
	jle	.L2
	movq	%rbp, %r12
	xorl	%ebx, %ebx
	leaq	.LC1(%rip), %r15
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%r12, %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	addq	$51, %r12
	cmpl	%ebx, 8(%rsp)
	jg	.L3
	movl	12(%rsp), %r12d
	testl	%r12d, %r12d
	jle	.L4
.L13:
	movq	%r14, %r13
	xorl	%ebx, %ebx
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%r13, %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %r12d
	addq	$51, %r13
	cmpl	%ebx, %r12d
	jg	.L5
.L4:
	movl	8(%rsp), %eax
	testl	%eax, %eax
	jle	.L6
	subl	$1, %eax
	leaq	(%rax,%rax,2), %rax
	movq	%rax, %rdx
	salq	$4, %rdx
	addq	%rdx, %rax
	leaq	67(%rsp,%rax), %r15
	leal	-1(%r12), %eax
	leaq	(%rax,%rax,2), %rax
	movq	%rax, %rdx
	salq	$4, %rdx
	addq	%rdx, %rax
	leaq	2675(%rsp,%rax), %r13
	xorl	%eax, %eax
.L7:
	movq	%r14, %rbx
	testl	%r12d, %r12d
	jg	.L9
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L8:
	addq	$51, %rbx
	cmpq	%rbx, %r13
	je	.L23
.L9:
	movq	%rbx, %rsi
	movq	%rbp, %rdi
	call	strstr@PLT
	testq	%rax, %rax
	jne	.L8
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
.L6:
	movq	5240(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L24
	addq	$5256, %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
.L23:
	.cfi_restore_state
	movl	$1, %eax
.L12:
	addq	$51, %rbp
	cmpq	%r15, %rbp
	jne	.L7
	subl	$1, %eax
	jne	.L6
	leaq	.LC3(%rip), %rdi
	call	puts@PLT
	jmp	.L6
.L2:
	cmpl	$0, 12(%rsp)
	leaq	.LC1(%rip), %r15
	jg	.L13
	jmp	.L6
.L24:
	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:
```
```c
#include<stdio.h>
#include<string.h>

int  main()
{
  int n,m;
  char a[51][51]={},b[51][51]={};
  int i,j;
  int tmp=0;
  
  scanf("%d%d",&n,&m);
  
  for(i=0;i<n;i++)
  {
    scanf("%s",&a[i]);
  }
  
  for(i=0;i<m;i++)
  {
    scanf("%s",&b[i]);
  }
  
  for(i=0;i<n;i++)
  {
    for(j=0;j<m;j++)
    {
      if(strstr(a[i],b[j])==NULL)
      {
        printf("No\n");
        return 0;
      }
        else
        {
          tmp=1;
        }
    }
  }

  
  if(tmp==1)
  {
    printf("Yes\n");
  }
  return 0;
}```
Given the following C code, your task is to generate highly optimized x86-64 assembly code.
C Code:

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

int  main()
{
  int n,m;
  char a[51][51]={},b[51][51]={};
  int i,j;
  int tmp=0;
  
  scanf("%d%d",&n,&m);
  
  for(i=0;i<n;i++)
  {
    scanf("%s",&a[i]);
  }
  
  for(i=0;i<m;i++)
  {
    scanf("%s",&b[i]);
  }
  
  for(i=0;i<n;i++)
  {
    for(j=0;j<m;j++)
    {
      if(strstr(a[i],b[j])==NULL)
      {
        printf("No\n");
        return 0;
      }
        else
        {
          tmp=1;
        }
    }
  }

  
  if(tmp==1)
  {
    printf("Yes\n");
  }
  return 0;
}```

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.
Optimized Assembly Code:

3 2
#.#
.#.
#-#
#.
.#
 3 2
-#
.#.
.#
.
.#
 4 0
....
....
....
....
 3 2
#.#
.".
#-#
#.
.#
 4 1
..-.
....
....
....
 3 2
-#
.#.
#.
.
.#
 3 2
#.#
.".
#-#
$.
.#
 0 1
..-.
....
....
....
 0 2
#.#
.".
#-#
$.
.#
 0 1
..-.
....
....
-...

No
 No
 No
 Yes
 No
 No

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

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

int  main()
{
  int n,m;
  char a[51][51]={},b[51][51]={};
  int i,j;
  int tmp=0;
  
  scanf("%d%d",&n,&m);
  
  for(i=0;i<n;i++)
  {
    scanf("%s",&a[i]);
  }
  
  for(i=0;i<m;i++)
  {
    scanf("%s",&b[i]);
  }
  
  for(i=0;i<n;i++)
  {
    for(j=0;j<m;j++)
    {
      if(strstr(a[i],b[j])==NULL)
      {
        printf("No\n");
        return 0;
      }
        else
        {
          tmp=1;
        }
    }
  }

  
  if(tmp==1)
  {
    printf("Yes\n");
  }
  return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d%d"
.LC1:
	.string	"%s"
.LC2:
	.string	"No"
.LC3:
	.string	"Yes"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB35:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	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	$4096, %rsp
	.cfi_def_cfa_offset 4152
	orq	$0, (%rsp)
	subq	$1160, %rsp
	.cfi_def_cfa_offset 5312
	movl	$325, %ecx
	movq	%fs:40, %rax
	movq	%rax, 5240(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rbp
	leaq	12(%rsp), %rdx
	movq	%rbp, %rdi
	leaq	2624(%rsp), %r14
	leaq	8(%rsp), %rsi
	rep stosq
	movl	$325, %ecx
	movb	$0, (%rdi)
	movq	%r14, %rdi
	rep stosq
	movb	$0, (%rdi)
	leaq	.LC0(%rip), %rdi
	call	__isoc99_scanf@PLT
	movl	8(%rsp), %eax
	testl	%eax, %eax
	jle	.L2
	movq	%rbp, %r12
	xorl	%ebx, %ebx
	leaq	.LC1(%rip), %r15
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%r12, %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	addq	$51, %r12
	cmpl	%ebx, 8(%rsp)
	jg	.L3
	movl	12(%rsp), %r12d
	testl	%r12d, %r12d
	jle	.L4
.L13:
	movq	%r14, %r13
	xorl	%ebx, %ebx
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%r13, %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %r12d
	addq	$51, %r13
	cmpl	%ebx, %r12d
	jg	.L5
.L4:
	movl	8(%rsp), %eax
	testl	%eax, %eax
	jle	.L6
	subl	$1, %eax
	leaq	(%rax,%rax,2), %rax
	movq	%rax, %rdx
	salq	$4, %rdx
	addq	%rdx, %rax
	leaq	67(%rsp,%rax), %r15
	leal	-1(%r12), %eax
	leaq	(%rax,%rax,2), %rax
	movq	%rax, %rdx
	salq	$4, %rdx
	addq	%rdx, %rax
	leaq	2675(%rsp,%rax), %r13
	xorl	%eax, %eax
.L7:
	movq	%r14, %rbx
	testl	%r12d, %r12d
	jg	.L9
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L8:
	addq	$51, %rbx
	cmpq	%rbx, %r13
	je	.L23
.L9:
	movq	%rbx, %rsi
	movq	%rbp, %rdi
	call	strstr@PLT
	testq	%rax, %rax
	jne	.L8
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
.L6:
	movq	5240(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L24
	addq	$5256, %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
.L23:
	.cfi_restore_state
	movl	$1, %eax
.L12:
	addq	$51, %rbp
	cmpq	%r15, %rbp
	jne	.L7
	subl	$1, %eax
	jne	.L6
	leaq	.LC3(%rip), %rdi
	call	puts@PLT
	jmp	.L6
.L2:
	cmpl	$0, 12(%rsp)
	leaq	.LC1(%rip), %r15
	jg	.L13
	jmp	.L6
.L24:
	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:
```

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.
Optimized Assembly Code:

train
```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d%d"
.LC1:
	.string	"%s"
.LC2:
	.string	"No"
.LC3:
	.string	"Yes"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB35:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	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	$4096, %rsp
	.cfi_def_cfa_offset 4152
	orq	$0, (%rsp)
	subq	$1160, %rsp
	.cfi_def_cfa_offset 5312
	movl	$325, %ecx
	movq	%fs:40, %rax
	movq	%rax, 5240(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rbp
	leaq	12(%rsp), %rdx
	movq	%rbp, %rdi
	leaq	2624(%rsp), %r14
	leaq	8(%rsp), %rsi
	rep stosq
	movl	$325, %ecx
	movb	$0, (%rdi)
	movq	%r14, %rdi
	rep stosq
	movb	$0, (%rdi)
	leaq	.LC0(%rip), %rdi
	call	__isoc99_scanf@PLT
	movl	8(%rsp), %eax
	testl	%eax, %eax
	jle	.L2
	movq	%rbp, %r12
	xorl	%ebx, %ebx
	leaq	.LC1(%rip), %r15
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%r12, %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	addq	$51, %r12
	cmpl	%ebx, 8(%rsp)
	jg	.L3
	movl	12(%rsp), %r12d
	testl	%r12d, %r12d
	jle	.L4
.L13:
	movq	%r14, %r13
	xorl	%ebx, %ebx
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%r13, %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %r12d
	addq	$51, %r13
	cmpl	%ebx, %r12d
	jg	.L5
.L4:
	movl	8(%rsp), %eax
	testl	%eax, %eax
	jle	.L6
	subl	$1, %eax
	leaq	(%rax,%rax,2), %rax
	movq	%rax, %rdx
	salq	$4, %rdx
	addq	%rdx, %rax
	leaq	67(%rsp,%rax), %r15
	leal	-1(%r12), %eax
	leaq	(%rax,%rax,2), %rax
	movq	%rax, %rdx
	salq	$4, %rdx
	addq	%rdx, %rax
	leaq	2675(%rsp,%rax), %r13
	xorl	%eax, %eax
.L7:
	movq	%r14, %rbx
	testl	%r12d, %r12d
	jg	.L9
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L8:
	addq	$51, %rbx
	cmpq	%rbx, %r13
	je	.L23
.L9:
	movq	%rbx, %rsi
	movq	%rbp, %rdi
	call	strstr@PLT
	testq	%rax, %rax
	jne	.L8
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
.L6:
	movq	5240(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L24
	addq	$5256, %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
.L23:
	.cfi_restore_state
	movl	$1, %eax
.L12:
	addq	$51, %rbp
	cmpq	%r15, %rbp
	jne	.L7
	subl	$1, %eax
	jne	.L6
	leaq	.LC3(%rip), %rdi
	call	puts@PLT
	jmp	.L6
.L2:
	cmpl	$0, 12(%rsp)
	leaq	.LC1(%rip), %r15
	jg	.L13
	jmp	.L6
.L24:
	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:
```