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

int main()
{
  int y, m, d;
  char s[20];
  char *g;
  
  while (1) {
    fgets(s, sizeof(s), stdin);
    if (s[0] == '#') break;
    s[strlen(s) - 1] = '\0';
    g = strtok(s, " ");
    
    g = strtok(NULL, " ");
    y = atoi(g);
    g = strtok(NULL, " ");
    m = atoi(g);
    g = strtok(NULL, " ");
    d = atoi(g);

    if (y <= 30) {
      printf("HEISEI %d %d %d\n", y, m, d);
    } else if (y >=32) {
      printf("? %d %d %d\n", y - 30, m, d);
    } else {
      if (m >= 5) {
        printf("? 1 %d %d\n", m, d);
      } else {
        printf("HEISEI %d %d %d\n", y, m, d);
      }
    }
  }

  return 0;
}

```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	" "
.LC1:
	.string	"HEISEI %d %d %d\n"
.LC2:
	.string	"? %d %d %d\n"
.LC3:
	.string	"? 1 %d %d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB51:
	.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
	leaq	.LC0(%rip), %rbx
	subq	$40, %rsp
	.cfi_def_cfa_offset 96
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	movq	%rsp, %rbp
	.p2align 4,,10
	.p2align 3
.L2:
	movq	stdin(%rip), %rdx
	movl	$20, %esi
	movq	%rbp, %rdi
	call	fgets@PLT
	cmpb	$35, (%rsp)
	je	.L3
	movq	%rbp, %rdi
	call	strlen@PLT
	movq	%rbx, %rsi
	movq	%rbp, %rdi
	movb	$0, -1(%rsp,%rax)
	call	strtok@PLT
	xorl	%edi, %edi
	movq	%rbx, %rsi
	call	strtok@PLT
	movl	$10, %edx
	xorl	%esi, %esi
	movq	%rax, %rdi
	call	strtol@PLT
	xorl	%edi, %edi
	movq	%rbx, %rsi
	movq	%rax, %r13
	call	strtok@PLT
	movl	$10, %edx
	xorl	%esi, %esi
	movq	%rax, %rdi
	call	strtol@PLT
	xorl	%edi, %edi
	movq	%rbx, %rsi
	movq	%rax, %r14
	call	strtok@PLT
	xorl	%esi, %esi
	movl	$10, %edx
	movq	%rax, %rdi
	call	strtol@PLT
	cmpl	$30, %r13d
	jle	.L11
	cmpl	$31, %r13d
	je	.L6
	movl	%eax, %r8d
	leal	-30(%r13), %edx
	movl	%r14d, %ecx
	movl	$1, %edi
	leaq	.LC2(%rip), %rsi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L6:
	cmpl	$4, %r14d
	jle	.L7
	movl	%eax, %ecx
	movl	%r14d, %edx
	movl	$1, %edi
	xorl	%eax, %eax
	leaq	.LC3(%rip), %rsi
	call	__printf_chk@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L11:
	movl	%eax, %r8d
	movl	%r14d, %ecx
	movl	%r13d, %edx
	movl	$1, %edi
	leaq	.LC1(%rip), %rsi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L7:
	movl	%eax, %r8d
	movl	%r14d, %ecx
	movl	$31, %edx
	movl	$1, %edi
	leaq	.LC1(%rip), %rsi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L3:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L12
	addq	$40, %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
.L12:
	.cfi_restore_state
	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:
```

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	" "
.LC1:
	.string	"HEISEI %d %d %d\n"
.LC2:
	.string	"? %d %d %d\n"
.LC3:
	.string	"? 1 %d %d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB51:
	.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
	leaq	.LC0(%rip), %rbx
	subq	$40, %rsp
	.cfi_def_cfa_offset 96
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	movq	%rsp, %rbp
	.p2align 4,,10
	.p2align 3
.L2:
	movq	stdin(%rip), %rdx
	movl	$20, %esi
	movq	%rbp, %rdi
	call	fgets@PLT
	cmpb	$35, (%rsp)
	je	.L3
	movq	%rbp, %rdi
	call	strlen@PLT
	movq	%rbx, %rsi
	movq	%rbp, %rdi
	movb	$0, -1(%rsp,%rax)
	call	strtok@PLT
	xorl	%edi, %edi
	movq	%rbx, %rsi
	call	strtok@PLT
	movl	$10, %edx
	xorl	%esi, %esi
	movq	%rax, %rdi
	call	strtol@PLT
	xorl	%edi, %edi
	movq	%rbx, %rsi
	movq	%rax, %r13
	call	strtok@PLT
	movl	$10, %edx
	xorl	%esi, %esi
	movq	%rax, %rdi
	call	strtol@PLT
	xorl	%edi, %edi
	movq	%rbx, %rsi
	movq	%rax, %r14
	call	strtok@PLT
	xorl	%esi, %esi
	movl	$10, %edx
	movq	%rax, %rdi
	call	strtol@PLT
	cmpl	$30, %r13d
	jle	.L11
	cmpl	$31, %r13d
	je	.L6
	movl	%eax, %r8d
	leal	-30(%r13), %edx
	movl	%r14d, %ecx
	movl	$1, %edi
	leaq	.LC2(%rip), %rsi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L6:
	cmpl	$4, %r14d
	jle	.L7
	movl	%eax, %ecx
	movl	%r14d, %edx
	movl	$1, %edi
	xorl	%eax, %eax
	leaq	.LC3(%rip), %rsi
	call	__printf_chk@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L11:
	movl	%eax, %r8d
	movl	%r14d, %ecx
	movl	%r13d, %edx
	movl	$1, %edi
	leaq	.LC1(%rip), %rsi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L7:
	movl	%eax, %r8d
	movl	%r14d, %ecx
	movl	$31, %edx
	movl	$1, %edi
	leaq	.LC1(%rip), %rsi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L3:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L12
	addq	$40, %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
.L12:
	.cfi_restore_state
	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
```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	" "
.LC1:
	.string	"HEISEI %d %d %d\n"
.LC2:
	.string	"? %d %d %d\n"
.LC3:
	.string	"? 1 %d %d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB51:
	.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
	leaq	.LC0(%rip), %rbx
	subq	$40, %rsp
	.cfi_def_cfa_offset 96
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	movq	%rsp, %rbp
	.p2align 4,,10
	.p2align 3
.L2:
	movq	stdin(%rip), %rdx
	movl	$20, %esi
	movq	%rbp, %rdi
	call	fgets@PLT
	cmpb	$35, (%rsp)
	je	.L3
	movq	%rbp, %rdi
	call	strlen@PLT
	movq	%rbx, %rsi
	movq	%rbp, %rdi
	movb	$0, -1(%rsp,%rax)
	call	strtok@PLT
	xorl	%edi, %edi
	movq	%rbx, %rsi
	call	strtok@PLT
	movl	$10, %edx
	xorl	%esi, %esi
	movq	%rax, %rdi
	call	strtol@PLT
	xorl	%edi, %edi
	movq	%rbx, %rsi
	movq	%rax, %r13
	call	strtok@PLT
	movl	$10, %edx
	xorl	%esi, %esi
	movq	%rax, %rdi
	call	strtol@PLT
	xorl	%edi, %edi
	movq	%rbx, %rsi
	movq	%rax, %r14
	call	strtok@PLT
	xorl	%esi, %esi
	movl	$10, %edx
	movq	%rax, %rdi
	call	strtol@PLT
	cmpl	$30, %r13d
	jle	.L11
	cmpl	$31, %r13d
	je	.L6
	movl	%eax, %r8d
	leal	-30(%r13), %edx
	movl	%r14d, %ecx
	movl	$1, %edi
	leaq	.LC2(%rip), %rsi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L6:
	cmpl	$4, %r14d
	jle	.L7
	movl	%eax, %ecx
	movl	%r14d, %edx
	movl	$1, %edi
	xorl	%eax, %eax
	leaq	.LC3(%rip), %rsi
	call	__printf_chk@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L11:
	movl	%eax, %r8d
	movl	%r14d, %ecx
	movl	%r13d, %edx
	movl	$1, %edi
	leaq	.LC1(%rip), %rsi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L7:
	movl	%eax, %r8d
	movl	%r14d, %ecx
	movl	$31, %edx
	movl	$1, %edi
	leaq	.LC1(%rip), %rsi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L3:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L12
	addq	$40, %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
.L12:
	.cfi_restore_state
	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:
```
```c
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

int main()
{
  int y, m, d;
  char s[20];
  char *g;
  
  while (1) {
    fgets(s, sizeof(s), stdin);
    if (s[0] == '#') break;
    s[strlen(s) - 1] = '\0';
    g = strtok(s, " ");
    
    g = strtok(NULL, " ");
    y = atoi(g);
    g = strtok(NULL, " ");
    m = atoi(g);
    g = strtok(NULL, " ");
    d = atoi(g);

    if (y <= 30) {
      printf("HEISEI %d %d %d\n", y, m, d);
    } else if (y >=32) {
      printf("? %d %d %d\n", y - 30, m, d);
    } else {
      if (m >= 5) {
        printf("? 1 %d %d\n", m, d);
      } else {
        printf("HEISEI %d %d %d\n", y, m, d);
      }
    }
  }

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

int main()
{
  int y, m, d;
  char s[20];
  char *g;
  
  while (1) {
    fgets(s, sizeof(s), stdin);
    if (s[0] == '#') break;
    s[strlen(s) - 1] = '\0';
    g = strtok(s, " ");
    
    g = strtok(NULL, " ");
    y = atoi(g);
    g = strtok(NULL, " ");
    m = atoi(g);
    g = strtok(NULL, " ");
    d = atoi(g);

    if (y <= 30) {
      printf("HEISEI %d %d %d\n", y, m, d);
    } else if (y >=32) {
      printf("? %d %d %d\n", y - 30, m, d);
    } else {
      if (m >= 5) {
        printf("? 1 %d %d\n", m, d);
      } else {
        printf("HEISEI %d %d %d\n", y, m, d);
      }
    }
  }

  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:

HEISEI 1 1 8
HEISEI 31 4 30
IESIEH 31 5 1
HEISEI 99 12 31
HEISEI 38 8 30
HEISEI 98 2 22
HEISEI 2 3 26
HEISEI 28 4 23
#
 HEISEI 1 1 8
HEISEI 31 4 30
IESIEH 31 5 1
HEISEI 99 12 31
HEISEI 38 8 30
HEISEI 98 2 22
HEISEI 3 3 26
HEISEI 28 4 23
#
 HEISEI 1 1 8
HEISEI 31 4 30
IESIEH 31 5 1
HEISEI 99 12 31
HEISEI 38 8 30
HEISEI 98 2 22
HEISEI 5 3 26
HEISEI 28 4 23
#
 HEISEI 1 1 8
HEISEI 31 4 30
IESIEH 31 5 2
HEISEI 99 12 31
HEISEI 38 8 30
HEISEI 98 2 22
HEISEI 2 3 26
HEISEI 28 4 23
#
 HEISEI 1 1 8
HEISEI 31 4 30
IESIEH 31 5 2
HEISEI 142 12 31
HEISEI 38 8 30
HEISEI 98 2 22
HEISEI 2 3 26
HEISEI 28 4 23
#
 HEISEI 1 1 8
HEISEI 31 4 10
IESIEH 31 5 2
HEISEI 142 12 31
HEISEI 38 8 30
HEISEI 98 2 22
HEISEI 2 3 26
HEISEI 28 4 23
#
 HEISEI 1 0 8
HEISEI 31 4 10
IESIEH 31 5 2
HEISEI 142 12 31
HEISEI 38 8 30
HEISEI 98 2 22
HEISEI 2 3 26
HEISEI 28 4 23
#
 HEISEI 1 0 8
HEISEI 31 4 10
IESEIH 31 5 2
HEISEI 142 12 31
HEISEI 38 8 30
HEISEI 98 2 22
HEISEI 4 3 26
HEISEI 28 4 23
#
 HEISEI 1 0 8
HEISEI 31 4 10
IESEIH 31 5 2
HEISEI 142 12 31
HEISEI 38 8 30
HEISEI 98 2 22
HEISEI 3 3 26
HEISEI 28 4 23
#
 HEISEI 1 0 0
HEISEI 31 4 10
IESEIH 31 5 2
IEISEH 142 12 31
HEISEI 38 8 30
HEJSEI 98 2 22
HEISEI 3 3 26
HEISEI 28 4 23
#

HEISEI 1 1 8
HEISEI 31 4 30
? 1 5 1
? 69 12 31
? 8 8 30
? 68 2 22
HEISEI 2 3 26
HEISEI 28 4 23
 HEISEI 1 1 8
HEISEI 31 4 30
? 1 5 1
? 69 12 31
? 8 8 30
? 68 2 22
HEISEI 3 3 26
HEISEI 28 4 23
 HEISEI 1 1 8
HEISEI 31 4 30
? 1 5 1
? 69 12 31
? 8 8 30
? 68 2 22
HEISEI 5 3 26
HEISEI 28 4 23
 HEISEI 1 1 8
HEISEI 31 4 30
? 1 5 2
? 69 12 31
? 8 8 30
? 68 2 22
HEISEI 2 3 26
HEISEI 28 4 23
 HEISEI 1 1 8
HEISEI 31 4 30
? 1 5 2
? 112 12 31
? 8 8 30
? 68 2 22
HEISEI 2 3 26
HEISEI 28 4 23
 HEISEI 1 1 8
HEISEI 31 4 10
? 1 5 2
? 112 12 31
? 8 8 30
? 68 2 22
HEISEI 2 3 26
HEISEI 28 4 23
 HEISEI 1 0 8
HEISEI 31 4 10
? 1 5 2
? 112 12 31
? 8 8 30
? 68 2 22
HEISEI 2 3 26
HEISEI 28 4 23
 HEISEI 1 0 8
HEISEI 31 4 10
? 1 5 2
? 112 12 31
? 8 8 30
? 68 2 22
HEISEI 4 3 26
HEISEI 28 4 23
 HEISEI 1 0 8
HEISEI 31 4 10
? 1 5 2
? 112 12 31
? 8 8 30
? 68 2 22
HEISEI 3 3 26
HEISEI 28 4 23
 HEISEI 1 0 0
HEISEI 31 4 10
? 1 5 2
? 112 12 31
? 8 8 30
? 68 2 22
HEISEI 3 3 26
HEISEI 28 4 23

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

int main()
{
  int y, m, d;
  char s[20];
  char *g;
  
  while (1) {
    fgets(s, sizeof(s), stdin);
    if (s[0] == '#') break;
    s[strlen(s) - 1] = '\0';
    g = strtok(s, " ");
    
    g = strtok(NULL, " ");
    y = atoi(g);
    g = strtok(NULL, " ");
    m = atoi(g);
    g = strtok(NULL, " ");
    d = atoi(g);

    if (y <= 30) {
      printf("HEISEI %d %d %d\n", y, m, d);
    } else if (y >=32) {
      printf("? %d %d %d\n", y - 30, m, d);
    } else {
      if (m >= 5) {
        printf("? 1 %d %d\n", m, d);
      } else {
        printf("HEISEI %d %d %d\n", y, m, d);
      }
    }
  }

  return 0;
}

```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	" "
.LC1:
	.string	"HEISEI %d %d %d\n"
.LC2:
	.string	"? %d %d %d\n"
.LC3:
	.string	"? 1 %d %d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB51:
	.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
	leaq	.LC0(%rip), %rbx
	subq	$40, %rsp
	.cfi_def_cfa_offset 96
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	movq	%rsp, %rbp
	.p2align 4,,10
	.p2align 3
.L2:
	movq	stdin(%rip), %rdx
	movl	$20, %esi
	movq	%rbp, %rdi
	call	fgets@PLT
	cmpb	$35, (%rsp)
	je	.L3
	movq	%rbp, %rdi
	call	strlen@PLT
	movq	%rbx, %rsi
	movq	%rbp, %rdi
	movb	$0, -1(%rsp,%rax)
	call	strtok@PLT
	xorl	%edi, %edi
	movq	%rbx, %rsi
	call	strtok@PLT
	movl	$10, %edx
	xorl	%esi, %esi
	movq	%rax, %rdi
	call	strtol@PLT
	xorl	%edi, %edi
	movq	%rbx, %rsi
	movq	%rax, %r13
	call	strtok@PLT
	movl	$10, %edx
	xorl	%esi, %esi
	movq	%rax, %rdi
	call	strtol@PLT
	xorl	%edi, %edi
	movq	%rbx, %rsi
	movq	%rax, %r14
	call	strtok@PLT
	xorl	%esi, %esi
	movl	$10, %edx
	movq	%rax, %rdi
	call	strtol@PLT
	cmpl	$30, %r13d
	jle	.L11
	cmpl	$31, %r13d
	je	.L6
	movl	%eax, %r8d
	leal	-30(%r13), %edx
	movl	%r14d, %ecx
	movl	$1, %edi
	leaq	.LC2(%rip), %rsi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L6:
	cmpl	$4, %r14d
	jle	.L7
	movl	%eax, %ecx
	movl	%r14d, %edx
	movl	$1, %edi
	xorl	%eax, %eax
	leaq	.LC3(%rip), %rsi
	call	__printf_chk@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L11:
	movl	%eax, %r8d
	movl	%r14d, %ecx
	movl	%r13d, %edx
	movl	$1, %edi
	leaq	.LC1(%rip), %rsi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L7:
	movl	%eax, %r8d
	movl	%r14d, %ecx
	movl	$31, %edx
	movl	$1, %edi
	leaq	.LC1(%rip), %rsi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L3:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L12
	addq	$40, %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
.L12:
	.cfi_restore_state
	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:
```

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	" "
.LC1:
	.string	"HEISEI %d %d %d\n"
.LC2:
	.string	"? %d %d %d\n"
.LC3:
	.string	"? 1 %d %d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB51:
	.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
	leaq	.LC0(%rip), %rbx
	subq	$40, %rsp
	.cfi_def_cfa_offset 96
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	movq	%rsp, %rbp
	.p2align 4,,10
	.p2align 3
.L2:
	movq	stdin(%rip), %rdx
	movl	$20, %esi
	movq	%rbp, %rdi
	call	fgets@PLT
	cmpb	$35, (%rsp)
	je	.L3
	movq	%rbp, %rdi
	call	strlen@PLT
	movq	%rbx, %rsi
	movq	%rbp, %rdi
	movb	$0, -1(%rsp,%rax)
	call	strtok@PLT
	xorl	%edi, %edi
	movq	%rbx, %rsi
	call	strtok@PLT
	movl	$10, %edx
	xorl	%esi, %esi
	movq	%rax, %rdi
	call	strtol@PLT
	xorl	%edi, %edi
	movq	%rbx, %rsi
	movq	%rax, %r13
	call	strtok@PLT
	movl	$10, %edx
	xorl	%esi, %esi
	movq	%rax, %rdi
	call	strtol@PLT
	xorl	%edi, %edi
	movq	%rbx, %rsi
	movq	%rax, %r14
	call	strtok@PLT
	xorl	%esi, %esi
	movl	$10, %edx
	movq	%rax, %rdi
	call	strtol@PLT
	cmpl	$30, %r13d
	jle	.L11
	cmpl	$31, %r13d
	je	.L6
	movl	%eax, %r8d
	leal	-30(%r13), %edx
	movl	%r14d, %ecx
	movl	$1, %edi
	leaq	.LC2(%rip), %rsi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L6:
	cmpl	$4, %r14d
	jle	.L7
	movl	%eax, %ecx
	movl	%r14d, %edx
	movl	$1, %edi
	xorl	%eax, %eax
	leaq	.LC3(%rip), %rsi
	call	__printf_chk@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L11:
	movl	%eax, %r8d
	movl	%r14d, %ecx
	movl	%r13d, %edx
	movl	$1, %edi
	leaq	.LC1(%rip), %rsi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L7:
	movl	%eax, %r8d
	movl	%r14d, %ecx
	movl	$31, %edx
	movl	$1, %edi
	leaq	.LC1(%rip), %rsi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L3:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L12
	addq	$40, %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
.L12:
	.cfi_restore_state
	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:
```