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>

int main (void){
  int n;
  scanf("%d",&n);
  
  int s = 111 , ans;
  for(int i = 1;i <= 9;i ++){
    if(n <= 111*i){
      ans = i;
      break;
    }
  }
  
  printf("%d\n",ans*111);
  
  return 0;
}
      ```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	subq	$24, %rsp
	.cfi_def_cfa_offset 32
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	leaq	4(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	4(%rsp), %eax
	cmpl	$111, %eax
	jle	.L5
	cmpl	$222, %eax
	jle	.L6
	cmpl	$333, %eax
	jle	.L7
	cmpl	$444, %eax
	jle	.L8
	cmpl	$555, %eax
	jle	.L9
	cmpl	$666, %eax
	jle	.L10
	cmpl	$777, %eax
	jle	.L11
	cmpl	$888, %eax
	jle	.L12
	xorl	%edx, %edx
	cmpl	$999, %eax
	movl	$9, %eax
	cmovle	%eax, %edx
.L3:
	imull	$111, %edx, %edx
	xorl	%eax, %eax
	movl	$1, %edi
	leaq	.LC1(%rip), %rsi
	call	__printf_chk@PLT
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L15
	xorl	%eax, %eax
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L5:
	.cfi_restore_state
	movl	$1, %edx
	jmp	.L3
.L6:
	movl	$2, %edx
	jmp	.L3
.L7:
	movl	$3, %edx
	jmp	.L3
.L8:
	movl	$4, %edx
	jmp	.L3
.L9:
	movl	$5, %edx
	jmp	.L3
.L10:
	movl	$6, %edx
	jmp	.L3
.L11:
	movl	$7, %edx
	jmp	.L3
.L12:
	movl	$8, %edx
	jmp	.L3
.L15:
	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:
```

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"
.LC1:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	subq	$24, %rsp
	.cfi_def_cfa_offset 32
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	leaq	4(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	4(%rsp), %eax
	cmpl	$111, %eax
	jle	.L5
	cmpl	$222, %eax
	jle	.L6
	cmpl	$333, %eax
	jle	.L7
	cmpl	$444, %eax
	jle	.L8
	cmpl	$555, %eax
	jle	.L9
	cmpl	$666, %eax
	jle	.L10
	cmpl	$777, %eax
	jle	.L11
	cmpl	$888, %eax
	jle	.L12
	xorl	%edx, %edx
	cmpl	$999, %eax
	movl	$9, %eax
	cmovle	%eax, %edx
.L3:
	imull	$111, %edx, %edx
	xorl	%eax, %eax
	movl	$1, %edi
	leaq	.LC1(%rip), %rsi
	call	__printf_chk@PLT
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L15
	xorl	%eax, %eax
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L5:
	.cfi_restore_state
	movl	$1, %edx
	jmp	.L3
.L6:
	movl	$2, %edx
	jmp	.L3
.L7:
	movl	$3, %edx
	jmp	.L3
.L8:
	movl	$4, %edx
	jmp	.L3
.L9:
	movl	$5, %edx
	jmp	.L3
.L10:
	movl	$6, %edx
	jmp	.L3
.L11:
	movl	$7, %edx
	jmp	.L3
.L12:
	movl	$8, %edx
	jmp	.L3
.L15:
	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
```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	subq	$24, %rsp
	.cfi_def_cfa_offset 32
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	leaq	4(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	4(%rsp), %eax
	cmpl	$111, %eax
	jle	.L5
	cmpl	$222, %eax
	jle	.L6
	cmpl	$333, %eax
	jle	.L7
	cmpl	$444, %eax
	jle	.L8
	cmpl	$555, %eax
	jle	.L9
	cmpl	$666, %eax
	jle	.L10
	cmpl	$777, %eax
	jle	.L11
	cmpl	$888, %eax
	jle	.L12
	xorl	%edx, %edx
	cmpl	$999, %eax
	movl	$9, %eax
	cmovle	%eax, %edx
.L3:
	imull	$111, %edx, %edx
	xorl	%eax, %eax
	movl	$1, %edi
	leaq	.LC1(%rip), %rsi
	call	__printf_chk@PLT
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L15
	xorl	%eax, %eax
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L5:
	.cfi_restore_state
	movl	$1, %edx
	jmp	.L3
.L6:
	movl	$2, %edx
	jmp	.L3
.L7:
	movl	$3, %edx
	jmp	.L3
.L8:
	movl	$4, %edx
	jmp	.L3
.L9:
	movl	$5, %edx
	jmp	.L3
.L10:
	movl	$6, %edx
	jmp	.L3
.L11:
	movl	$7, %edx
	jmp	.L3
.L12:
	movl	$8, %edx
	jmp	.L3
.L15:
	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:
```
```c
#include <stdio.h>

int main (void){
  int n;
  scanf("%d",&n);
  
  int s = 111 , ans;
  for(int i = 1;i <= 9;i ++){
    if(n <= 111*i){
      ans = i;
      break;
    }
  }
  
  printf("%d\n",ans*111);
  
  return 0;
}
      ```
Given the following C code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include <stdio.h>

int main (void){
  int n;
  scanf("%d",&n);
  
  int s = 111 , ans;
  for(int i = 1;i <= 9;i ++){
    if(n <= 111*i){
      ans = i;
      break;
    }
  }
  
  printf("%d\n",ans*111);
  
  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:

426
 101
 638
 268
 457
 000
 985
 846
 198
 706

444
 111
 666
 333
 555
 111
 999
 888
 222
 777

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>

int main (void){
  int n;
  scanf("%d",&n);
  
  int s = 111 , ans;
  for(int i = 1;i <= 9;i ++){
    if(n <= 111*i){
      ans = i;
      break;
    }
  }
  
  printf("%d\n",ans*111);
  
  return 0;
}
      ```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	subq	$24, %rsp
	.cfi_def_cfa_offset 32
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	leaq	4(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	4(%rsp), %eax
	cmpl	$111, %eax
	jle	.L5
	cmpl	$222, %eax
	jle	.L6
	cmpl	$333, %eax
	jle	.L7
	cmpl	$444, %eax
	jle	.L8
	cmpl	$555, %eax
	jle	.L9
	cmpl	$666, %eax
	jle	.L10
	cmpl	$777, %eax
	jle	.L11
	cmpl	$888, %eax
	jle	.L12
	xorl	%edx, %edx
	cmpl	$999, %eax
	movl	$9, %eax
	cmovle	%eax, %edx
.L3:
	imull	$111, %edx, %edx
	xorl	%eax, %eax
	movl	$1, %edi
	leaq	.LC1(%rip), %rsi
	call	__printf_chk@PLT
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L15
	xorl	%eax, %eax
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L5:
	.cfi_restore_state
	movl	$1, %edx
	jmp	.L3
.L6:
	movl	$2, %edx
	jmp	.L3
.L7:
	movl	$3, %edx
	jmp	.L3
.L8:
	movl	$4, %edx
	jmp	.L3
.L9:
	movl	$5, %edx
	jmp	.L3
.L10:
	movl	$6, %edx
	jmp	.L3
.L11:
	movl	$7, %edx
	jmp	.L3
.L12:
	movl	$8, %edx
	jmp	.L3
.L15:
	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:
```

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"
.LC1:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	subq	$24, %rsp
	.cfi_def_cfa_offset 32
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	leaq	4(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	4(%rsp), %eax
	cmpl	$111, %eax
	jle	.L5
	cmpl	$222, %eax
	jle	.L6
	cmpl	$333, %eax
	jle	.L7
	cmpl	$444, %eax
	jle	.L8
	cmpl	$555, %eax
	jle	.L9
	cmpl	$666, %eax
	jle	.L10
	cmpl	$777, %eax
	jle	.L11
	cmpl	$888, %eax
	jle	.L12
	xorl	%edx, %edx
	cmpl	$999, %eax
	movl	$9, %eax
	cmovle	%eax, %edx
.L3:
	imull	$111, %edx, %edx
	xorl	%eax, %eax
	movl	$1, %edi
	leaq	.LC1(%rip), %rsi
	call	__printf_chk@PLT
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L15
	xorl	%eax, %eax
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L5:
	.cfi_restore_state
	movl	$1, %edx
	jmp	.L3
.L6:
	movl	$2, %edx
	jmp	.L3
.L7:
	movl	$3, %edx
	jmp	.L3
.L8:
	movl	$4, %edx
	jmp	.L3
.L9:
	movl	$5, %edx
	jmp	.L3
.L10:
	movl	$6, %edx
	jmp	.L3
.L11:
	movl	$7, %edx
	jmp	.L3
.L12:
	movl	$8, %edx
	jmp	.L3
.L15:
	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:
```