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(){
  int n,s,a,b,c,d;
  while(scanf("%d",&n),n){
    s=0;
    while(n--){
      scanf("%d %d %d %d",&a,&b,&c,&d);
      a+=b+c;
      if     (a>160)b=9;
      else if(a>140)b=8;
      else if(a>120)b=7;
      else if(a>100)b=6;
      else if(a> 80)b=5;
      else if(a> 60)b=4;
      else          b=3;
      if     (d>25)c=9;
      else if(d>20)c=8;
      else if(d>15)c=7;
      else if(d>10)c=6;
      else if(d> 5)c=5;
      else if(d> 2)c=4;
      else         c=3;
      if(b<c)b=c;
      if(b==9)b=0;
      s+=b;
    }
    printf("%d\n",s*200);
  }
  return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d %d %d %d"
.LC1:
	.string	"%d\n"
.LC2:
	.string	"%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.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
	leaq	.LC0(%rip), %r13
	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	$56, %rsp
	.cfi_def_cfa_offset 112
	movq	%fs:40, %rax
	movq	%rax, 40(%rsp)
	xorl	%eax, %eax
	leaq	20(%rsp), %rax
	leaq	36(%rsp), %r15
	movq	%rax, 8(%rsp)
	leaq	32(%rsp), %r14
	.p2align 4,,10
	.p2align 3
.L2:
	movq	8(%rsp), %rsi
	leaq	.LC2(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	20(%rsp), %eax
	testl	%eax, %eax
	je	.L16
	subl	$1, %eax
	leaq	28(%rsp), %r12
	leaq	24(%rsp), %rbp
	xorl	%ebx, %ebx
	movl	%eax, 20(%rsp)
	.p2align 4,,10
	.p2align 3
.L17:
	movq	%r15, %r8
	movq	%r14, %rcx
	movq	%r12, %rdx
	movq	%rbp, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	32(%rsp), %eax
	addl	28(%rsp), %eax
	addl	24(%rsp), %eax
	cmpl	$160, %eax
	jg	.L3
	movl	$8, %edx
	cmpl	$140, %eax
	jg	.L4
	movl	$7, %edx
	cmpl	$120, %eax
	jg	.L4
	movl	$6, %edx
	cmpl	$100, %eax
	jg	.L4
	movl	$5, %edx
	cmpl	$80, %eax
	jg	.L4
	xorl	%edx, %edx
	cmpl	$60, %eax
	setg	%dl
	addl	$3, %edx
	.p2align 4,,10
	.p2align 3
.L4:
	movl	%eax, 24(%rsp)
	movl	36(%rsp), %eax
	movl	%edx, 28(%rsp)
	cmpl	$25, %eax
	jg	.L20
	cmpl	$20, %eax
	jle	.L24
	movl	$8, 32(%rsp)
	cmpl	$7, %edx
	jg	.L10
	movl	$8, 28(%rsp)
	movl	$8, %edx
	.p2align 4,,10
	.p2align 3
.L11:
	addl	%edx, %ebx
.L38:
	movl	20(%rsp), %eax
	leal	-1(%rax), %edx
	movl	%edx, 20(%rsp)
	testl	%eax, %eax
	jne	.L17
	imull	$200, %ebx, %edx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L20:
	movl	$9, 32(%rsp)
.L13:
	movl	$0, 28(%rsp)
	jmp	.L38
	.p2align 4,,10
	.p2align 3
.L3:
	movl	%eax, 24(%rsp)
	movl	36(%rsp), %eax
	movl	$9, 28(%rsp)
	cmpl	$25, %eax
	jg	.L20
	movl	$9, %edx
	cmpl	$20, %eax
	jle	.L24
	movl	$8, 32(%rsp)
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L24:
	cmpl	$15, %eax
	jg	.L6
	cmpl	$10, %eax
	jg	.L7
	cmpl	$5, %eax
	jg	.L8
	cmpl	$2, %eax
	jg	.L9
	movl	$3, 32(%rsp)
	.p2align 4,,10
	.p2align 3
.L10:
	cmpl	$9, %edx
	jne	.L11
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L6:
	movl	$7, 32(%rsp)
	cmpl	$6, %edx
	jg	.L10
	movl	$7, 28(%rsp)
	movl	$7, %edx
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L7:
	movl	$6, 32(%rsp)
	cmpl	$5, %edx
	jg	.L10
	movl	$6, 28(%rsp)
	movl	$6, %edx
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L8:
	movl	$5, 32(%rsp)
	cmpl	$4, %edx
	jg	.L10
	movl	$5, 28(%rsp)
	movl	$5, %edx
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L9:
	movl	$4, 32(%rsp)
	cmpl	$3, %edx
	jne	.L10
	movl	$4, 28(%rsp)
	movl	$4, %edx
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L16:
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L40
	addq	$56, %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
.L40:
	.cfi_restore_state
	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 %d %d %d"
.LC1:
	.string	"%d\n"
.LC2:
	.string	"%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.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
	leaq	.LC0(%rip), %r13
	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	$56, %rsp
	.cfi_def_cfa_offset 112
	movq	%fs:40, %rax
	movq	%rax, 40(%rsp)
	xorl	%eax, %eax
	leaq	20(%rsp), %rax
	leaq	36(%rsp), %r15
	movq	%rax, 8(%rsp)
	leaq	32(%rsp), %r14
	.p2align 4,,10
	.p2align 3
.L2:
	movq	8(%rsp), %rsi
	leaq	.LC2(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	20(%rsp), %eax
	testl	%eax, %eax
	je	.L16
	subl	$1, %eax
	leaq	28(%rsp), %r12
	leaq	24(%rsp), %rbp
	xorl	%ebx, %ebx
	movl	%eax, 20(%rsp)
	.p2align 4,,10
	.p2align 3
.L17:
	movq	%r15, %r8
	movq	%r14, %rcx
	movq	%r12, %rdx
	movq	%rbp, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	32(%rsp), %eax
	addl	28(%rsp), %eax
	addl	24(%rsp), %eax
	cmpl	$160, %eax
	jg	.L3
	movl	$8, %edx
	cmpl	$140, %eax
	jg	.L4
	movl	$7, %edx
	cmpl	$120, %eax
	jg	.L4
	movl	$6, %edx
	cmpl	$100, %eax
	jg	.L4
	movl	$5, %edx
	cmpl	$80, %eax
	jg	.L4
	xorl	%edx, %edx
	cmpl	$60, %eax
	setg	%dl
	addl	$3, %edx
	.p2align 4,,10
	.p2align 3
.L4:
	movl	%eax, 24(%rsp)
	movl	36(%rsp), %eax
	movl	%edx, 28(%rsp)
	cmpl	$25, %eax
	jg	.L20
	cmpl	$20, %eax
	jle	.L24
	movl	$8, 32(%rsp)
	cmpl	$7, %edx
	jg	.L10
	movl	$8, 28(%rsp)
	movl	$8, %edx
	.p2align 4,,10
	.p2align 3
.L11:
	addl	%edx, %ebx
.L38:
	movl	20(%rsp), %eax
	leal	-1(%rax), %edx
	movl	%edx, 20(%rsp)
	testl	%eax, %eax
	jne	.L17
	imull	$200, %ebx, %edx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L20:
	movl	$9, 32(%rsp)
.L13:
	movl	$0, 28(%rsp)
	jmp	.L38
	.p2align 4,,10
	.p2align 3
.L3:
	movl	%eax, 24(%rsp)
	movl	36(%rsp), %eax
	movl	$9, 28(%rsp)
	cmpl	$25, %eax
	jg	.L20
	movl	$9, %edx
	cmpl	$20, %eax
	jle	.L24
	movl	$8, 32(%rsp)
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L24:
	cmpl	$15, %eax
	jg	.L6
	cmpl	$10, %eax
	jg	.L7
	cmpl	$5, %eax
	jg	.L8
	cmpl	$2, %eax
	jg	.L9
	movl	$3, 32(%rsp)
	.p2align 4,,10
	.p2align 3
.L10:
	cmpl	$9, %edx
	jne	.L11
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L6:
	movl	$7, 32(%rsp)
	cmpl	$6, %edx
	jg	.L10
	movl	$7, 28(%rsp)
	movl	$7, %edx
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L7:
	movl	$6, 32(%rsp)
	cmpl	$5, %edx
	jg	.L10
	movl	$6, 28(%rsp)
	movl	$6, %edx
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L8:
	movl	$5, 32(%rsp)
	cmpl	$4, %edx
	jg	.L10
	movl	$5, 28(%rsp)
	movl	$5, %edx
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L9:
	movl	$4, 32(%rsp)
	cmpl	$3, %edx
	jne	.L10
	movl	$4, 28(%rsp)
	movl	$4, %edx
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L16:
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L40
	addq	$56, %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
.L40:
	.cfi_restore_state
	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 %d %d %d"
.LC1:
	.string	"%d\n"
.LC2:
	.string	"%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.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
	leaq	.LC0(%rip), %r13
	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	$56, %rsp
	.cfi_def_cfa_offset 112
	movq	%fs:40, %rax
	movq	%rax, 40(%rsp)
	xorl	%eax, %eax
	leaq	20(%rsp), %rax
	leaq	36(%rsp), %r15
	movq	%rax, 8(%rsp)
	leaq	32(%rsp), %r14
	.p2align 4,,10
	.p2align 3
.L2:
	movq	8(%rsp), %rsi
	leaq	.LC2(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	20(%rsp), %eax
	testl	%eax, %eax
	je	.L16
	subl	$1, %eax
	leaq	28(%rsp), %r12
	leaq	24(%rsp), %rbp
	xorl	%ebx, %ebx
	movl	%eax, 20(%rsp)
	.p2align 4,,10
	.p2align 3
.L17:
	movq	%r15, %r8
	movq	%r14, %rcx
	movq	%r12, %rdx
	movq	%rbp, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	32(%rsp), %eax
	addl	28(%rsp), %eax
	addl	24(%rsp), %eax
	cmpl	$160, %eax
	jg	.L3
	movl	$8, %edx
	cmpl	$140, %eax
	jg	.L4
	movl	$7, %edx
	cmpl	$120, %eax
	jg	.L4
	movl	$6, %edx
	cmpl	$100, %eax
	jg	.L4
	movl	$5, %edx
	cmpl	$80, %eax
	jg	.L4
	xorl	%edx, %edx
	cmpl	$60, %eax
	setg	%dl
	addl	$3, %edx
	.p2align 4,,10
	.p2align 3
.L4:
	movl	%eax, 24(%rsp)
	movl	36(%rsp), %eax
	movl	%edx, 28(%rsp)
	cmpl	$25, %eax
	jg	.L20
	cmpl	$20, %eax
	jle	.L24
	movl	$8, 32(%rsp)
	cmpl	$7, %edx
	jg	.L10
	movl	$8, 28(%rsp)
	movl	$8, %edx
	.p2align 4,,10
	.p2align 3
.L11:
	addl	%edx, %ebx
.L38:
	movl	20(%rsp), %eax
	leal	-1(%rax), %edx
	movl	%edx, 20(%rsp)
	testl	%eax, %eax
	jne	.L17
	imull	$200, %ebx, %edx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L20:
	movl	$9, 32(%rsp)
.L13:
	movl	$0, 28(%rsp)
	jmp	.L38
	.p2align 4,,10
	.p2align 3
.L3:
	movl	%eax, 24(%rsp)
	movl	36(%rsp), %eax
	movl	$9, 28(%rsp)
	cmpl	$25, %eax
	jg	.L20
	movl	$9, %edx
	cmpl	$20, %eax
	jle	.L24
	movl	$8, 32(%rsp)
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L24:
	cmpl	$15, %eax
	jg	.L6
	cmpl	$10, %eax
	jg	.L7
	cmpl	$5, %eax
	jg	.L8
	cmpl	$2, %eax
	jg	.L9
	movl	$3, 32(%rsp)
	.p2align 4,,10
	.p2align 3
.L10:
	cmpl	$9, %edx
	jne	.L11
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L6:
	movl	$7, 32(%rsp)
	cmpl	$6, %edx
	jg	.L10
	movl	$7, 28(%rsp)
	movl	$7, %edx
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L7:
	movl	$6, 32(%rsp)
	cmpl	$5, %edx
	jg	.L10
	movl	$6, 28(%rsp)
	movl	$6, %edx
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L8:
	movl	$5, 32(%rsp)
	cmpl	$4, %edx
	jg	.L10
	movl	$5, 28(%rsp)
	movl	$5, %edx
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L9:
	movl	$4, 32(%rsp)
	cmpl	$3, %edx
	jne	.L10
	movl	$4, 28(%rsp)
	movl	$4, %edx
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L16:
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L40
	addq	$56, %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
.L40:
	.cfi_restore_state
	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(){
  int n,s,a,b,c,d;
  while(scanf("%d",&n),n){
    s=0;
    while(n--){
      scanf("%d %d %d %d",&a,&b,&c,&d);
      a+=b+c;
      if     (a>160)b=9;
      else if(a>140)b=8;
      else if(a>120)b=7;
      else if(a>100)b=6;
      else if(a> 80)b=5;
      else if(a> 60)b=4;
      else          b=3;
      if     (d>25)c=9;
      else if(d>20)c=8;
      else if(d>15)c=7;
      else if(d>10)c=6;
      else if(d> 5)c=5;
      else if(d> 2)c=4;
      else         c=3;
      if(b<c)b=c;
      if(b==9)b=0;
      s+=b;
    }
    printf("%d\n",s*200);
  }
  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(){
  int n,s,a,b,c,d;
  while(scanf("%d",&n),n){
    s=0;
    while(n--){
      scanf("%d %d %d %d",&a,&b,&c,&d);
      a+=b+c;
      if     (a>160)b=9;
      else if(a>140)b=8;
      else if(a>120)b=7;
      else if(a>100)b=6;
      else if(a> 80)b=5;
      else if(a> 60)b=4;
      else          b=3;
      if     (d>25)c=9;
      else if(d>20)c=8;
      else if(d>15)c=7;
      else if(d>10)c=6;
      else if(d> 5)c=5;
      else if(d> 2)c=4;
      else         c=3;
      if(b<c)b=c;
      if(b==9)b=0;
      s+=b;
    }
    printf("%d\n",s*200);
  }
  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:

2
50 25 5 5
80 60 10 30
3
10 7 25 24
5 8 12 5
30 30 30 18
0
 2
50 25 5 5
80 60 10 30
3
10 7 25 24
5 8 12 5
30 30 30 3
0
 2
50 25 5 5
135 60 10 30
3
10 7 25 24
5 8 13 5
30 30 30 14
0
 2
50 36 5 5
135 60 8 30
3
10 8 25 24
5 1 13 5
30 30 30 14
0
 2
74 2 5 5
80 82 1 0
0
7 2 0 24
2 -1 12 3
30 30 -1 11
0
 2
74 2 3 5
115 94 1 0
0
7 2 0 24
2 -1 12 3
54 30 -2 11
0
 2
50 34 5 5
80 60 10 30
3
10 15 25 24
5 8 12 5
30 30 30 18
0
 2
50 1 5 2
80 60 10 30
3
10 15 25 24
5 8 12 5
30 30 30 18
0
 2
86 25 5 5
135 60 10 30
3
10 8 25 24
5 8 13 5
30 30 30 14
0
 2
51 1 5 5
80 95 3 30
3
10 15 25 47
2 12 12 3
30 30 30 11
0

800
3800
 800
3400
 800
3600
 1000
3600
 1000
 800
 1000
3800
 600
3800
 1200
3600
 800
2000

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(){
  int n,s,a,b,c,d;
  while(scanf("%d",&n),n){
    s=0;
    while(n--){
      scanf("%d %d %d %d",&a,&b,&c,&d);
      a+=b+c;
      if     (a>160)b=9;
      else if(a>140)b=8;
      else if(a>120)b=7;
      else if(a>100)b=6;
      else if(a> 80)b=5;
      else if(a> 60)b=4;
      else          b=3;
      if     (d>25)c=9;
      else if(d>20)c=8;
      else if(d>15)c=7;
      else if(d>10)c=6;
      else if(d> 5)c=5;
      else if(d> 2)c=4;
      else         c=3;
      if(b<c)b=c;
      if(b==9)b=0;
      s+=b;
    }
    printf("%d\n",s*200);
  }
  return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d %d %d %d"
.LC1:
	.string	"%d\n"
.LC2:
	.string	"%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.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
	leaq	.LC0(%rip), %r13
	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	$56, %rsp
	.cfi_def_cfa_offset 112
	movq	%fs:40, %rax
	movq	%rax, 40(%rsp)
	xorl	%eax, %eax
	leaq	20(%rsp), %rax
	leaq	36(%rsp), %r15
	movq	%rax, 8(%rsp)
	leaq	32(%rsp), %r14
	.p2align 4,,10
	.p2align 3
.L2:
	movq	8(%rsp), %rsi
	leaq	.LC2(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	20(%rsp), %eax
	testl	%eax, %eax
	je	.L16
	subl	$1, %eax
	leaq	28(%rsp), %r12
	leaq	24(%rsp), %rbp
	xorl	%ebx, %ebx
	movl	%eax, 20(%rsp)
	.p2align 4,,10
	.p2align 3
.L17:
	movq	%r15, %r8
	movq	%r14, %rcx
	movq	%r12, %rdx
	movq	%rbp, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	32(%rsp), %eax
	addl	28(%rsp), %eax
	addl	24(%rsp), %eax
	cmpl	$160, %eax
	jg	.L3
	movl	$8, %edx
	cmpl	$140, %eax
	jg	.L4
	movl	$7, %edx
	cmpl	$120, %eax
	jg	.L4
	movl	$6, %edx
	cmpl	$100, %eax
	jg	.L4
	movl	$5, %edx
	cmpl	$80, %eax
	jg	.L4
	xorl	%edx, %edx
	cmpl	$60, %eax
	setg	%dl
	addl	$3, %edx
	.p2align 4,,10
	.p2align 3
.L4:
	movl	%eax, 24(%rsp)
	movl	36(%rsp), %eax
	movl	%edx, 28(%rsp)
	cmpl	$25, %eax
	jg	.L20
	cmpl	$20, %eax
	jle	.L24
	movl	$8, 32(%rsp)
	cmpl	$7, %edx
	jg	.L10
	movl	$8, 28(%rsp)
	movl	$8, %edx
	.p2align 4,,10
	.p2align 3
.L11:
	addl	%edx, %ebx
.L38:
	movl	20(%rsp), %eax
	leal	-1(%rax), %edx
	movl	%edx, 20(%rsp)
	testl	%eax, %eax
	jne	.L17
	imull	$200, %ebx, %edx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L20:
	movl	$9, 32(%rsp)
.L13:
	movl	$0, 28(%rsp)
	jmp	.L38
	.p2align 4,,10
	.p2align 3
.L3:
	movl	%eax, 24(%rsp)
	movl	36(%rsp), %eax
	movl	$9, 28(%rsp)
	cmpl	$25, %eax
	jg	.L20
	movl	$9, %edx
	cmpl	$20, %eax
	jle	.L24
	movl	$8, 32(%rsp)
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L24:
	cmpl	$15, %eax
	jg	.L6
	cmpl	$10, %eax
	jg	.L7
	cmpl	$5, %eax
	jg	.L8
	cmpl	$2, %eax
	jg	.L9
	movl	$3, 32(%rsp)
	.p2align 4,,10
	.p2align 3
.L10:
	cmpl	$9, %edx
	jne	.L11
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L6:
	movl	$7, 32(%rsp)
	cmpl	$6, %edx
	jg	.L10
	movl	$7, 28(%rsp)
	movl	$7, %edx
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L7:
	movl	$6, 32(%rsp)
	cmpl	$5, %edx
	jg	.L10
	movl	$6, 28(%rsp)
	movl	$6, %edx
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L8:
	movl	$5, 32(%rsp)
	cmpl	$4, %edx
	jg	.L10
	movl	$5, 28(%rsp)
	movl	$5, %edx
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L9:
	movl	$4, 32(%rsp)
	cmpl	$3, %edx
	jne	.L10
	movl	$4, 28(%rsp)
	movl	$4, %edx
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L16:
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L40
	addq	$56, %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
.L40:
	.cfi_restore_state
	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 %d %d %d"
.LC1:
	.string	"%d\n"
.LC2:
	.string	"%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.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
	leaq	.LC0(%rip), %r13
	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	$56, %rsp
	.cfi_def_cfa_offset 112
	movq	%fs:40, %rax
	movq	%rax, 40(%rsp)
	xorl	%eax, %eax
	leaq	20(%rsp), %rax
	leaq	36(%rsp), %r15
	movq	%rax, 8(%rsp)
	leaq	32(%rsp), %r14
	.p2align 4,,10
	.p2align 3
.L2:
	movq	8(%rsp), %rsi
	leaq	.LC2(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	20(%rsp), %eax
	testl	%eax, %eax
	je	.L16
	subl	$1, %eax
	leaq	28(%rsp), %r12
	leaq	24(%rsp), %rbp
	xorl	%ebx, %ebx
	movl	%eax, 20(%rsp)
	.p2align 4,,10
	.p2align 3
.L17:
	movq	%r15, %r8
	movq	%r14, %rcx
	movq	%r12, %rdx
	movq	%rbp, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	32(%rsp), %eax
	addl	28(%rsp), %eax
	addl	24(%rsp), %eax
	cmpl	$160, %eax
	jg	.L3
	movl	$8, %edx
	cmpl	$140, %eax
	jg	.L4
	movl	$7, %edx
	cmpl	$120, %eax
	jg	.L4
	movl	$6, %edx
	cmpl	$100, %eax
	jg	.L4
	movl	$5, %edx
	cmpl	$80, %eax
	jg	.L4
	xorl	%edx, %edx
	cmpl	$60, %eax
	setg	%dl
	addl	$3, %edx
	.p2align 4,,10
	.p2align 3
.L4:
	movl	%eax, 24(%rsp)
	movl	36(%rsp), %eax
	movl	%edx, 28(%rsp)
	cmpl	$25, %eax
	jg	.L20
	cmpl	$20, %eax
	jle	.L24
	movl	$8, 32(%rsp)
	cmpl	$7, %edx
	jg	.L10
	movl	$8, 28(%rsp)
	movl	$8, %edx
	.p2align 4,,10
	.p2align 3
.L11:
	addl	%edx, %ebx
.L38:
	movl	20(%rsp), %eax
	leal	-1(%rax), %edx
	movl	%edx, 20(%rsp)
	testl	%eax, %eax
	jne	.L17
	imull	$200, %ebx, %edx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L20:
	movl	$9, 32(%rsp)
.L13:
	movl	$0, 28(%rsp)
	jmp	.L38
	.p2align 4,,10
	.p2align 3
.L3:
	movl	%eax, 24(%rsp)
	movl	36(%rsp), %eax
	movl	$9, 28(%rsp)
	cmpl	$25, %eax
	jg	.L20
	movl	$9, %edx
	cmpl	$20, %eax
	jle	.L24
	movl	$8, 32(%rsp)
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L24:
	cmpl	$15, %eax
	jg	.L6
	cmpl	$10, %eax
	jg	.L7
	cmpl	$5, %eax
	jg	.L8
	cmpl	$2, %eax
	jg	.L9
	movl	$3, 32(%rsp)
	.p2align 4,,10
	.p2align 3
.L10:
	cmpl	$9, %edx
	jne	.L11
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L6:
	movl	$7, 32(%rsp)
	cmpl	$6, %edx
	jg	.L10
	movl	$7, 28(%rsp)
	movl	$7, %edx
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L7:
	movl	$6, 32(%rsp)
	cmpl	$5, %edx
	jg	.L10
	movl	$6, 28(%rsp)
	movl	$6, %edx
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L8:
	movl	$5, 32(%rsp)
	cmpl	$4, %edx
	jg	.L10
	movl	$5, 28(%rsp)
	movl	$5, %edx
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L9:
	movl	$4, 32(%rsp)
	cmpl	$3, %edx
	jne	.L10
	movl	$4, 28(%rsp)
	movl	$4, %edx
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L16:
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L40
	addq	$56, %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
.L40:
	.cfi_restore_state
	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:
```