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() {
int a = 0, b, E, Y;
scanf("%d", &E);
scanf("%d", &Y);
if (E == 0) {
if (Y >= 1868 && Y <= 1911) {
 a = Y - 1868;
printf("M%d\n", a+1); 
} else if (Y >= 1912 && Y <= 1925) {
 a = Y - 1912;
printf("T%d\n", a+1);
} else if (Y >= 1926 && Y <= 1988) {
 a = Y - 1926;
printf("S%d\n", a+1);
} else if (Y >= 1989 && Y <= 2016) {
 a = Y - 1989;
printf("H%d\n", a+1);
}
} 	else if (E == 1) {
		b = 1867 + Y;
		printf("%d\n", b);
	} else if (E == 2) {
		b = 1911 + Y;
		printf("%d\n", b);
	} else if (E == 3) {
		b = 1925 + Y;
		printf("%d\n", b);
	} else if (E == 4) {
		b = 1988 + Y;
		printf("%d\n", b);
} return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"M%d\n"
.LC2:
	.string	"T%d\n"
.LC3:
	.string	"S%d\n"
.LC4:
	.string	"H%d\n"
.LC5:
	.string	"%d\n"
	.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
	subq	$32, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -16(%rbp)
	leaq	-24(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	-20(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-24(%rbp), %eax
	testl	%eax, %eax
	jne	.L2
	movl	-20(%rbp), %eax
	cmpl	$1867, %eax
	jle	.L3
	movl	-20(%rbp), %eax
	cmpl	$1911, %eax
	jg	.L3
	movl	-20(%rbp), %eax
	subl	$1868, %eax
	movl	%eax, -16(%rbp)
	movl	-16(%rbp), %eax
	addl	$1, %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L7
.L3:
	movl	-20(%rbp), %eax
	cmpl	$1911, %eax
	jle	.L5
	movl	-20(%rbp), %eax
	cmpl	$1925, %eax
	jg	.L5
	movl	-20(%rbp), %eax
	subl	$1912, %eax
	movl	%eax, -16(%rbp)
	movl	-16(%rbp), %eax
	addl	$1, %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L7
.L5:
	movl	-20(%rbp), %eax
	cmpl	$1925, %eax
	jle	.L6
	movl	-20(%rbp), %eax
	cmpl	$1988, %eax
	jg	.L6
	movl	-20(%rbp), %eax
	subl	$1926, %eax
	movl	%eax, -16(%rbp)
	movl	-16(%rbp), %eax
	addl	$1, %eax
	movl	%eax, %esi
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L7
.L6:
	movl	-20(%rbp), %eax
	cmpl	$1988, %eax
	jle	.L7
	movl	-20(%rbp), %eax
	cmpl	$2016, %eax
	jg	.L7
	movl	-20(%rbp), %eax
	subl	$1989, %eax
	movl	%eax, -16(%rbp)
	movl	-16(%rbp), %eax
	addl	$1, %eax
	movl	%eax, %esi
	leaq	.LC4(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L7
.L2:
	movl	-24(%rbp), %eax
	cmpl	$1, %eax
	jne	.L8
	movl	-20(%rbp), %eax
	addl	$1867, %eax
	movl	%eax, -12(%rbp)
	movl	-12(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC5(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L7
.L8:
	movl	-24(%rbp), %eax
	cmpl	$2, %eax
	jne	.L9
	movl	-20(%rbp), %eax
	addl	$1911, %eax
	movl	%eax, -12(%rbp)
	movl	-12(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC5(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L7
.L9:
	movl	-24(%rbp), %eax
	cmpl	$3, %eax
	jne	.L10
	movl	-20(%rbp), %eax
	addl	$1925, %eax
	movl	%eax, -12(%rbp)
	movl	-12(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC5(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L7
.L10:
	movl	-24(%rbp), %eax
	cmpl	$4, %eax
	jne	.L7
	movl	-20(%rbp), %eax
	addl	$1988, %eax
	movl	%eax, -12(%rbp)
	movl	-12(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC5(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L7:
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L12
	call	__stack_chk_fail@PLT
.L12:
	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	"%d"
.LC1:
	.string	"M%d\n"
.LC2:
	.string	"T%d\n"
.LC3:
	.string	"S%d\n"
.LC4:
	.string	"H%d\n"
.LC5:
	.string	"%d\n"
	.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), %rbp
	movq	%rbp, %rdi
	subq	$16, %rsp
	.cfi_def_cfa_offset 32
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	movq	%rsp, %rsi
	call	__isoc99_scanf@PLT
	leaq	4(%rsp), %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	(%rsp), %eax
	testl	%eax, %eax
	jne	.L2
	movl	4(%rsp), %edx
	leal	-1868(%rdx), %eax
	cmpl	$43, %eax
	jbe	.L13
	leal	-1912(%rdx), %eax
	cmpl	$13, %eax
	jbe	.L14
	leal	-1926(%rdx), %eax
	cmpl	$62, %eax
	jbe	.L15
	leal	-1989(%rdx), %eax
	cmpl	$27, %eax
	ja	.L4
	subl	$1988, %edx
	leaq	.LC4(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L4
.L2:
	cmpl	$1, %eax
	je	.L16
	cmpl	$2, %eax
	je	.L17
	cmpl	$3, %eax
	je	.L18
	cmpl	$4, %eax
	je	.L19
.L4:
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L20
	addq	$16, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	xorl	%eax, %eax
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
.L13:
	.cfi_restore_state
	subl	$1867, %edx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L4
.L16:
	movl	4(%rsp), %eax
	leaq	.LC5(%rip), %rsi
	movl	$1, %edi
	leal	1867(%rax), %edx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L4
.L15:
	subl	$1925, %edx
	leaq	.LC3(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L4
.L14:
	subl	$1911, %edx
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L4
.L17:
	movl	4(%rsp), %eax
	leaq	.LC5(%rip), %rsi
	movl	$1, %edi
	leal	1911(%rax), %edx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L4
.L18:
	movl	4(%rsp), %eax
	leaq	.LC5(%rip), %rsi
	movl	$1, %edi
	leal	1925(%rax), %edx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L4
.L19:
	movl	4(%rsp), %eax
	leaq	.LC5(%rip), %rsi
	movl	$1, %edi
	leal	1988(%rax), %edx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L4
.L20:
	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"
.LC1:
	.string	"M%d\n"
.LC2:
	.string	"T%d\n"
.LC3:
	.string	"S%d\n"
.LC4:
	.string	"H%d\n"
.LC5:
	.string	"%d\n"
	.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), %rbp
	movq	%rbp, %rdi
	subq	$16, %rsp
	.cfi_def_cfa_offset 32
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	movq	%rsp, %rsi
	call	__isoc99_scanf@PLT
	leaq	4(%rsp), %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	(%rsp), %eax
	testl	%eax, %eax
	jne	.L2
	movl	4(%rsp), %edx
	leal	-1868(%rdx), %eax
	cmpl	$43, %eax
	jbe	.L13
	leal	-1912(%rdx), %eax
	cmpl	$13, %eax
	jbe	.L14
	leal	-1926(%rdx), %eax
	cmpl	$62, %eax
	jbe	.L15
	leal	-1989(%rdx), %eax
	cmpl	$27, %eax
	ja	.L4
	subl	$1988, %edx
	leaq	.LC4(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L4
.L2:
	cmpl	$1, %eax
	je	.L16
	cmpl	$2, %eax
	je	.L17
	cmpl	$3, %eax
	je	.L18
	cmpl	$4, %eax
	je	.L19
.L4:
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L20
	addq	$16, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	xorl	%eax, %eax
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
.L13:
	.cfi_restore_state
	subl	$1867, %edx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L4
.L16:
	movl	4(%rsp), %eax
	leaq	.LC5(%rip), %rsi
	movl	$1, %edi
	leal	1867(%rax), %edx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L4
.L15:
	subl	$1925, %edx
	leaq	.LC3(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L4
.L14:
	subl	$1911, %edx
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L4
.L17:
	movl	4(%rsp), %eax
	leaq	.LC5(%rip), %rsi
	movl	$1, %edi
	leal	1911(%rax), %edx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L4
.L18:
	movl	4(%rsp), %eax
	leaq	.LC5(%rip), %rsi
	movl	$1, %edi
	leal	1925(%rax), %edx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L4
.L19:
	movl	4(%rsp), %eax
	leaq	.LC5(%rip), %rsi
	movl	$1, %edi
	leal	1988(%rax), %edx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L4
.L20:
	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() {
int a = 0, b, E, Y;
scanf("%d", &E);
scanf("%d", &Y);
if (E == 0) {
if (Y >= 1868 && Y <= 1911) {
 a = Y - 1868;
printf("M%d\n", a+1); 
} else if (Y >= 1912 && Y <= 1925) {
 a = Y - 1912;
printf("T%d\n", a+1);
} else if (Y >= 1926 && Y <= 1988) {
 a = Y - 1926;
printf("S%d\n", a+1);
} else if (Y >= 1989 && Y <= 2016) {
 a = Y - 1989;
printf("H%d\n", a+1);
}
} 	else if (E == 1) {
		b = 1867 + Y;
		printf("%d\n", b);
	} else if (E == 2) {
		b = 1911 + Y;
		printf("%d\n", b);
	} else if (E == 3) {
		b = 1925 + Y;
		printf("%d\n", b);
	} else if (E == 4) {
		b = 1988 + Y;
		printf("%d\n", b);
} return 0;
}
4 2
 3 1
 1 28
 2 0
 3 2
 4 1
 1 42
 1 0
 3 0
 4 0

1990
 1926
 1895
 1911
 1927
 1989
 1909
 1867
 1925
 1988

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() {
int a = 0, b, E, Y;
scanf("%d", &E);
scanf("%d", &Y);
if (E == 0) {
if (Y >= 1868 && Y <= 1911) {
 a = Y - 1868;
printf("M%d\n", a+1); 
} else if (Y >= 1912 && Y <= 1925) {
 a = Y - 1912;
printf("T%d\n", a+1);
} else if (Y >= 1926 && Y <= 1988) {
 a = Y - 1926;
printf("S%d\n", a+1);
} else if (Y >= 1989 && Y <= 2016) {
 a = Y - 1989;
printf("H%d\n", a+1);
}
} 	else if (E == 1) {
		b = 1867 + Y;
		printf("%d\n", b);
	} else if (E == 2) {
		b = 1911 + Y;
		printf("%d\n", b);
	} else if (E == 3) {
		b = 1925 + Y;
		printf("%d\n", b);
	} else if (E == 4) {
		b = 1988 + Y;
		printf("%d\n", b);
} return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"M%d\n"
.LC2:
	.string	"T%d\n"
.LC3:
	.string	"S%d\n"
.LC4:
	.string	"H%d\n"
.LC5:
	.string	"%d\n"
	.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
	subq	$32, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -16(%rbp)
	leaq	-24(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	-20(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-24(%rbp), %eax
	testl	%eax, %eax
	jne	.L2
	movl	-20(%rbp), %eax
	cmpl	$1867, %eax
	jle	.L3
	movl	-20(%rbp), %eax
	cmpl	$1911, %eax
	jg	.L3
	movl	-20(%rbp), %eax
	subl	$1868, %eax
	movl	%eax, -16(%rbp)
	movl	-16(%rbp), %eax
	addl	$1, %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L7
.L3:
	movl	-20(%rbp), %eax
	cmpl	$1911, %eax
	jle	.L5
	movl	-20(%rbp), %eax
	cmpl	$1925, %eax
	jg	.L5
	movl	-20(%rbp), %eax
	subl	$1912, %eax
	movl	%eax, -16(%rbp)
	movl	-16(%rbp), %eax
	addl	$1, %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L7
.L5:
	movl	-20(%rbp), %eax
	cmpl	$1925, %eax
	jle	.L6
	movl	-20(%rbp), %eax
	cmpl	$1988, %eax
	jg	.L6
	movl	-20(%rbp), %eax
	subl	$1926, %eax
	movl	%eax, -16(%rbp)
	movl	-16(%rbp), %eax
	addl	$1, %eax
	movl	%eax, %esi
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L7
.L6:
	movl	-20(%rbp), %eax
	cmpl	$1988, %eax
	jle	.L7
	movl	-20(%rbp), %eax
	cmpl	$2016, %eax
	jg	.L7
	movl	-20(%rbp), %eax
	subl	$1989, %eax
	movl	%eax, -16(%rbp)
	movl	-16(%rbp), %eax
	addl	$1, %eax
	movl	%eax, %esi
	leaq	.LC4(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L7
.L2:
	movl	-24(%rbp), %eax
	cmpl	$1, %eax
	jne	.L8
	movl	-20(%rbp), %eax
	addl	$1867, %eax
	movl	%eax, -12(%rbp)
	movl	-12(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC5(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L7
.L8:
	movl	-24(%rbp), %eax
	cmpl	$2, %eax
	jne	.L9
	movl	-20(%rbp), %eax
	addl	$1911, %eax
	movl	%eax, -12(%rbp)
	movl	-12(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC5(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L7
.L9:
	movl	-24(%rbp), %eax
	cmpl	$3, %eax
	jne	.L10
	movl	-20(%rbp), %eax
	addl	$1925, %eax
	movl	%eax, -12(%rbp)
	movl	-12(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC5(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L7
.L10:
	movl	-24(%rbp), %eax
	cmpl	$4, %eax
	jne	.L7
	movl	-20(%rbp), %eax
	addl	$1988, %eax
	movl	%eax, -12(%rbp)
	movl	-12(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC5(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L7:
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L12
	call	__stack_chk_fail@PLT
.L12:
	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	"%d"
.LC1:
	.string	"M%d\n"
.LC2:
	.string	"T%d\n"
.LC3:
	.string	"S%d\n"
.LC4:
	.string	"H%d\n"
.LC5:
	.string	"%d\n"
	.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
	subq	$32, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -16(%rbp)
	leaq	-24(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	-20(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-24(%rbp), %eax
	testl	%eax, %eax
	jne	.L2
	movl	-20(%rbp), %eax
	cmpl	$1867, %eax
	jle	.L3
	movl	-20(%rbp), %eax
	cmpl	$1911, %eax
	jg	.L3
	movl	-20(%rbp), %eax
	subl	$1868, %eax
	movl	%eax, -16(%rbp)
	movl	-16(%rbp), %eax
	addl	$1, %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L7
.L3:
	movl	-20(%rbp), %eax
	cmpl	$1911, %eax
	jle	.L5
	movl	-20(%rbp), %eax
	cmpl	$1925, %eax
	jg	.L5
	movl	-20(%rbp), %eax
	subl	$1912, %eax
	movl	%eax, -16(%rbp)
	movl	-16(%rbp), %eax
	addl	$1, %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L7
.L5:
	movl	-20(%rbp), %eax
	cmpl	$1925, %eax
	jle	.L6
	movl	-20(%rbp), %eax
	cmpl	$1988, %eax
	jg	.L6
	movl	-20(%rbp), %eax
	subl	$1926, %eax
	movl	%eax, -16(%rbp)
	movl	-16(%rbp), %eax
	addl	$1, %eax
	movl	%eax, %esi
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L7
.L6:
	movl	-20(%rbp), %eax
	cmpl	$1988, %eax
	jle	.L7
	movl	-20(%rbp), %eax
	cmpl	$2016, %eax
	jg	.L7
	movl	-20(%rbp), %eax
	subl	$1989, %eax
	movl	%eax, -16(%rbp)
	movl	-16(%rbp), %eax
	addl	$1, %eax
	movl	%eax, %esi
	leaq	.LC4(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L7
.L2:
	movl	-24(%rbp), %eax
	cmpl	$1, %eax
	jne	.L8
	movl	-20(%rbp), %eax
	addl	$1867, %eax
	movl	%eax, -12(%rbp)
	movl	-12(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC5(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L7
.L8:
	movl	-24(%rbp), %eax
	cmpl	$2, %eax
	jne	.L9
	movl	-20(%rbp), %eax
	addl	$1911, %eax
	movl	%eax, -12(%rbp)
	movl	-12(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC5(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L7
.L9:
	movl	-24(%rbp), %eax
	cmpl	$3, %eax
	jne	.L10
	movl	-20(%rbp), %eax
	addl	$1925, %eax
	movl	%eax, -12(%rbp)
	movl	-12(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC5(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L7
.L10:
	movl	-24(%rbp), %eax
	cmpl	$4, %eax
	jne	.L7
	movl	-20(%rbp), %eax
	addl	$1988, %eax
	movl	%eax, -12(%rbp)
	movl	-12(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC5(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L7:
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L12
	call	__stack_chk_fail@PLT
.L12:
	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:
