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 i,j,N,o=0;
    double h,w,n;
    while(~scanf("%d",&N))
    {
        for(i=1; i<=3500; i++)
        {
            for(j=1; j<=3500; j++)
            {
                h=i;
                w=j;
                n=N*h*w/(4*h*w-N*w-N*h);
                if((int)n==n&&n>0&&j>0&&i>0)
                {
                    if(4*h*w*n==N*(w*n+h*w+n*h))
                    {
                        o++;
                        printf("%.f %.f %.f\n",h,w,n);
                    }

                }
                if(o==1)
                    break;

            }
            if(o==1)
            {
                o=0;
                break;
            }
        }
    }
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC2:
	.string	"%.f %.f %.f\n"
.LC3:
	.string	"%d"
	.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	$48, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -36(%rbp)
	jmp	.L2
.L14:
	movl	$1, -44(%rbp)
	jmp	.L3
.L13:
	movl	$1, -40(%rbp)
	jmp	.L4
.L11:
	pxor	%xmm0, %xmm0
	cvtsi2sdl	-44(%rbp), %xmm0
	movsd	%xmm0, -32(%rbp)
	pxor	%xmm0, %xmm0
	cvtsi2sdl	-40(%rbp), %xmm0
	movsd	%xmm0, -24(%rbp)
	movl	-48(%rbp), %eax
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%eax, %xmm0
	mulsd	-32(%rbp), %xmm0
	mulsd	-24(%rbp), %xmm0
	movsd	-32(%rbp), %xmm2
	movsd	.LC0(%rip), %xmm1
	mulsd	%xmm2, %xmm1
	mulsd	-24(%rbp), %xmm1
	movl	-48(%rbp), %eax
	pxor	%xmm2, %xmm2
	cvtsi2sdl	%eax, %xmm2
	mulsd	-24(%rbp), %xmm2
	subsd	%xmm2, %xmm1
	movl	-48(%rbp), %eax
	pxor	%xmm2, %xmm2
	cvtsi2sdl	%eax, %xmm2
	mulsd	-32(%rbp), %xmm2
	subsd	%xmm2, %xmm1
	divsd	%xmm1, %xmm0
	movsd	%xmm0, -16(%rbp)
	movsd	-16(%rbp), %xmm0
	cvttsd2sil	%xmm0, %eax
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%eax, %xmm0
	ucomisd	-16(%rbp), %xmm0
	jp	.L5
	ucomisd	-16(%rbp), %xmm0
	jne	.L5
	movsd	-16(%rbp), %xmm0
	pxor	%xmm1, %xmm1
	comisd	%xmm1, %xmm0
	jbe	.L5
	cmpl	$0, -40(%rbp)
	jle	.L5
	cmpl	$0, -44(%rbp)
	jle	.L5
	movsd	-32(%rbp), %xmm1
	movsd	.LC0(%rip), %xmm0
	mulsd	%xmm1, %xmm0
	mulsd	-24(%rbp), %xmm0
	mulsd	-16(%rbp), %xmm0
	movl	-48(%rbp), %eax
	pxor	%xmm2, %xmm2
	cvtsi2sdl	%eax, %xmm2
	movsd	-24(%rbp), %xmm1
	movapd	%xmm1, %xmm3
	mulsd	-16(%rbp), %xmm3
	movsd	-32(%rbp), %xmm1
	mulsd	-24(%rbp), %xmm1
	addsd	%xmm1, %xmm3
	movsd	-16(%rbp), %xmm1
	mulsd	-32(%rbp), %xmm1
	addsd	%xmm3, %xmm1
	mulsd	%xmm2, %xmm1
	ucomisd	%xmm1, %xmm0
	jp	.L5
	ucomisd	%xmm1, %xmm0
	jne	.L5
	addl	$1, -36(%rbp)
	movsd	-16(%rbp), %xmm1
	movsd	-24(%rbp), %xmm0
	movq	-32(%rbp), %rax
	movapd	%xmm1, %xmm2
	movapd	%xmm0, %xmm1
	movq	%rax, %xmm0
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$3, %eax
	call	printf@PLT
.L5:
	cmpl	$1, -36(%rbp)
	je	.L20
	addl	$1, -40(%rbp)
.L4:
	cmpl	$3500, -40(%rbp)
	jle	.L11
	jmp	.L10
.L20:
	nop
.L10:
	cmpl	$1, -36(%rbp)
	jne	.L12
	movl	$0, -36(%rbp)
	jmp	.L2
.L12:
	addl	$1, -44(%rbp)
.L3:
	cmpl	$3500, -44(%rbp)
	jle	.L13
.L2:
	leaq	-48(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	cmpl	$-1, %eax
	jne	.L14
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L16
	call	__stack_chk_fail@PLT
.L16:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC0:
	.long	0
	.long	1074790400
	.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
.LC1:
	.string	"%.f %.f %.f\n"
.LC3:
	.string	"%d"
	.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
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	leaq	.LC3(%rip), %rbx
	subq	$24, %rsp
	.cfi_def_cfa_offset 48
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	leaq	4(%rsp), %rbp
	.p2align 4,,10
	.p2align 3
.L10:
	xorl	%eax, %eax
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	call	__isoc99_scanf@PLT
	pxor	%xmm5, %xmm5
	cmpl	$-1, %eax
	je	.L22
	pxor	%xmm7, %xmm7
	movl	$1, %ecx
	cvtsi2sdl	4(%rsp), %xmm7
	.p2align 4,,10
	.p2align 3
.L9:
	pxor	%xmm6, %xmm6
	movapd	%xmm7, %xmm4
	movl	$1, %eax
	movsd	.LC2(%rip), %xmm8
	cvtsi2sdl	%ecx, %xmm6
	mulsd	%xmm6, %xmm4
	mulsd	%xmm6, %xmm8
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L3:
	addl	$1, %eax
	cmpl	$3501, %eax
	je	.L23
.L7:
	pxor	%xmm1, %xmm1
	movapd	%xmm8, %xmm3
	movapd	%xmm7, %xmm9
	cvtsi2sdl	%eax, %xmm1
	movapd	%xmm4, %xmm2
	mulsd	%xmm1, %xmm3
	mulsd	%xmm1, %xmm9
	mulsd	%xmm1, %xmm2
	movapd	%xmm3, %xmm0
	subsd	%xmm9, %xmm0
	subsd	%xmm4, %xmm0
	divsd	%xmm0, %xmm2
	pxor	%xmm0, %xmm0
	cvttsd2sil	%xmm2, %edx
	cvtsi2sdl	%edx, %xmm0
	ucomisd	%xmm2, %xmm0
	jp	.L3
	jne	.L3
	comisd	%xmm5, %xmm2
	jbe	.L3
	mulsd	%xmm2, %xmm3
	movapd	%xmm6, %xmm9
	movapd	%xmm1, %xmm0
	mulsd	%xmm1, %xmm9
	mulsd	%xmm2, %xmm0
	addsd	%xmm9, %xmm0
	movapd	%xmm6, %xmm9
	mulsd	%xmm2, %xmm9
	addsd	%xmm9, %xmm0
	mulsd	%xmm7, %xmm0
	ucomisd	%xmm0, %xmm3
	jp	.L3
	jne	.L3
	movapd	%xmm6, %xmm0
	movl	$1, %edi
	movl	$3, %eax
	leaq	.LC1(%rip), %rsi
	call	__printf_chk@PLT
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L23:
	addl	$1, %ecx
	cmpl	$3501, %ecx
	jne	.L9
	jmp	.L10
.L22:
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L24
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
.L24:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC2:
	.long	0
	.long	1074790400
	.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
.LC1:
	.string	"%.f %.f %.f\n"
.LC3:
	.string	"%d"
	.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
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	leaq	.LC3(%rip), %rbx
	subq	$24, %rsp
	.cfi_def_cfa_offset 48
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	leaq	4(%rsp), %rbp
	.p2align 4,,10
	.p2align 3
.L10:
	xorl	%eax, %eax
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	call	__isoc99_scanf@PLT
	pxor	%xmm5, %xmm5
	cmpl	$-1, %eax
	je	.L22
	pxor	%xmm7, %xmm7
	movl	$1, %ecx
	cvtsi2sdl	4(%rsp), %xmm7
	.p2align 4,,10
	.p2align 3
.L9:
	pxor	%xmm6, %xmm6
	movapd	%xmm7, %xmm4
	movl	$1, %eax
	movsd	.LC2(%rip), %xmm8
	cvtsi2sdl	%ecx, %xmm6
	mulsd	%xmm6, %xmm4
	mulsd	%xmm6, %xmm8
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L3:
	addl	$1, %eax
	cmpl	$3501, %eax
	je	.L23
.L7:
	pxor	%xmm1, %xmm1
	movapd	%xmm8, %xmm3
	movapd	%xmm7, %xmm9
	cvtsi2sdl	%eax, %xmm1
	movapd	%xmm4, %xmm2
	mulsd	%xmm1, %xmm3
	mulsd	%xmm1, %xmm9
	mulsd	%xmm1, %xmm2
	movapd	%xmm3, %xmm0
	subsd	%xmm9, %xmm0
	subsd	%xmm4, %xmm0
	divsd	%xmm0, %xmm2
	pxor	%xmm0, %xmm0
	cvttsd2sil	%xmm2, %edx
	cvtsi2sdl	%edx, %xmm0
	ucomisd	%xmm2, %xmm0
	jp	.L3
	jne	.L3
	comisd	%xmm5, %xmm2
	jbe	.L3
	mulsd	%xmm2, %xmm3
	movapd	%xmm6, %xmm9
	movapd	%xmm1, %xmm0
	mulsd	%xmm1, %xmm9
	mulsd	%xmm2, %xmm0
	addsd	%xmm9, %xmm0
	movapd	%xmm6, %xmm9
	mulsd	%xmm2, %xmm9
	addsd	%xmm9, %xmm0
	mulsd	%xmm7, %xmm0
	ucomisd	%xmm0, %xmm3
	jp	.L3
	jne	.L3
	movapd	%xmm6, %xmm0
	movl	$1, %edi
	movl	$3, %eax
	leaq	.LC1(%rip), %rsi
	call	__printf_chk@PLT
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L23:
	addl	$1, %ecx
	cmpl	$3501, %ecx
	jne	.L9
	jmp	.L10
.L22:
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L24
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
.L24:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC2:
	.long	0
	.long	1074790400
	.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 i,j,N,o=0;
    double h,w,n;
    while(~scanf("%d",&N))
    {
        for(i=1; i<=3500; i++)
        {
            for(j=1; j<=3500; j++)
            {
                h=i;
                w=j;
                n=N*h*w/(4*h*w-N*w-N*h);
                if((int)n==n&&n>0&&j>0&&i>0)
                {
                    if(4*h*w*n==N*(w*n+h*w+n*h))
                    {
                        o++;
                        printf("%.f %.f %.f\n",h,w,n);
                    }

                }
                if(o==1)
                    break;

            }
            if(o==1)
            {
                o=0;
                break;
            }
        }
    }
}
2

1 2 2

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 i,j,N,o=0;
    double h,w,n;
    while(~scanf("%d",&N))
    {
        for(i=1; i<=3500; i++)
        {
            for(j=1; j<=3500; j++)
            {
                h=i;
                w=j;
                n=N*h*w/(4*h*w-N*w-N*h);
                if((int)n==n&&n>0&&j>0&&i>0)
                {
                    if(4*h*w*n==N*(w*n+h*w+n*h))
                    {
                        o++;
                        printf("%.f %.f %.f\n",h,w,n);
                    }

                }
                if(o==1)
                    break;

            }
            if(o==1)
            {
                o=0;
                break;
            }
        }
    }
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC2:
	.string	"%.f %.f %.f\n"
.LC3:
	.string	"%d"
	.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	$48, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -36(%rbp)
	jmp	.L2
.L14:
	movl	$1, -44(%rbp)
	jmp	.L3
.L13:
	movl	$1, -40(%rbp)
	jmp	.L4
.L11:
	pxor	%xmm0, %xmm0
	cvtsi2sdl	-44(%rbp), %xmm0
	movsd	%xmm0, -32(%rbp)
	pxor	%xmm0, %xmm0
	cvtsi2sdl	-40(%rbp), %xmm0
	movsd	%xmm0, -24(%rbp)
	movl	-48(%rbp), %eax
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%eax, %xmm0
	mulsd	-32(%rbp), %xmm0
	mulsd	-24(%rbp), %xmm0
	movsd	-32(%rbp), %xmm2
	movsd	.LC0(%rip), %xmm1
	mulsd	%xmm2, %xmm1
	mulsd	-24(%rbp), %xmm1
	movl	-48(%rbp), %eax
	pxor	%xmm2, %xmm2
	cvtsi2sdl	%eax, %xmm2
	mulsd	-24(%rbp), %xmm2
	subsd	%xmm2, %xmm1
	movl	-48(%rbp), %eax
	pxor	%xmm2, %xmm2
	cvtsi2sdl	%eax, %xmm2
	mulsd	-32(%rbp), %xmm2
	subsd	%xmm2, %xmm1
	divsd	%xmm1, %xmm0
	movsd	%xmm0, -16(%rbp)
	movsd	-16(%rbp), %xmm0
	cvttsd2sil	%xmm0, %eax
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%eax, %xmm0
	ucomisd	-16(%rbp), %xmm0
	jp	.L5
	ucomisd	-16(%rbp), %xmm0
	jne	.L5
	movsd	-16(%rbp), %xmm0
	pxor	%xmm1, %xmm1
	comisd	%xmm1, %xmm0
	jbe	.L5
	cmpl	$0, -40(%rbp)
	jle	.L5
	cmpl	$0, -44(%rbp)
	jle	.L5
	movsd	-32(%rbp), %xmm1
	movsd	.LC0(%rip), %xmm0
	mulsd	%xmm1, %xmm0
	mulsd	-24(%rbp), %xmm0
	mulsd	-16(%rbp), %xmm0
	movl	-48(%rbp), %eax
	pxor	%xmm2, %xmm2
	cvtsi2sdl	%eax, %xmm2
	movsd	-24(%rbp), %xmm1
	movapd	%xmm1, %xmm3
	mulsd	-16(%rbp), %xmm3
	movsd	-32(%rbp), %xmm1
	mulsd	-24(%rbp), %xmm1
	addsd	%xmm1, %xmm3
	movsd	-16(%rbp), %xmm1
	mulsd	-32(%rbp), %xmm1
	addsd	%xmm3, %xmm1
	mulsd	%xmm2, %xmm1
	ucomisd	%xmm1, %xmm0
	jp	.L5
	ucomisd	%xmm1, %xmm0
	jne	.L5
	addl	$1, -36(%rbp)
	movsd	-16(%rbp), %xmm1
	movsd	-24(%rbp), %xmm0
	movq	-32(%rbp), %rax
	movapd	%xmm1, %xmm2
	movapd	%xmm0, %xmm1
	movq	%rax, %xmm0
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$3, %eax
	call	printf@PLT
.L5:
	cmpl	$1, -36(%rbp)
	je	.L20
	addl	$1, -40(%rbp)
.L4:
	cmpl	$3500, -40(%rbp)
	jle	.L11
	jmp	.L10
.L20:
	nop
.L10:
	cmpl	$1, -36(%rbp)
	jne	.L12
	movl	$0, -36(%rbp)
	jmp	.L2
.L12:
	addl	$1, -44(%rbp)
.L3:
	cmpl	$3500, -44(%rbp)
	jle	.L13
.L2:
	leaq	-48(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	cmpl	$-1, %eax
	jne	.L14
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L16
	call	__stack_chk_fail@PLT
.L16:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC0:
	.long	0
	.long	1074790400
	.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
.LC2:
	.string	"%.f %.f %.f\n"
.LC3:
	.string	"%d"
	.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	$48, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -36(%rbp)
	jmp	.L2
.L14:
	movl	$1, -44(%rbp)
	jmp	.L3
.L13:
	movl	$1, -40(%rbp)
	jmp	.L4
.L11:
	pxor	%xmm0, %xmm0
	cvtsi2sdl	-44(%rbp), %xmm0
	movsd	%xmm0, -32(%rbp)
	pxor	%xmm0, %xmm0
	cvtsi2sdl	-40(%rbp), %xmm0
	movsd	%xmm0, -24(%rbp)
	movl	-48(%rbp), %eax
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%eax, %xmm0
	mulsd	-32(%rbp), %xmm0
	mulsd	-24(%rbp), %xmm0
	movsd	-32(%rbp), %xmm2
	movsd	.LC0(%rip), %xmm1
	mulsd	%xmm2, %xmm1
	mulsd	-24(%rbp), %xmm1
	movl	-48(%rbp), %eax
	pxor	%xmm2, %xmm2
	cvtsi2sdl	%eax, %xmm2
	mulsd	-24(%rbp), %xmm2
	subsd	%xmm2, %xmm1
	movl	-48(%rbp), %eax
	pxor	%xmm2, %xmm2
	cvtsi2sdl	%eax, %xmm2
	mulsd	-32(%rbp), %xmm2
	subsd	%xmm2, %xmm1
	divsd	%xmm1, %xmm0
	movsd	%xmm0, -16(%rbp)
	movsd	-16(%rbp), %xmm0
	cvttsd2sil	%xmm0, %eax
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%eax, %xmm0
	ucomisd	-16(%rbp), %xmm0
	jp	.L5
	ucomisd	-16(%rbp), %xmm0
	jne	.L5
	movsd	-16(%rbp), %xmm0
	pxor	%xmm1, %xmm1
	comisd	%xmm1, %xmm0
	jbe	.L5
	cmpl	$0, -40(%rbp)
	jle	.L5
	cmpl	$0, -44(%rbp)
	jle	.L5
	movsd	-32(%rbp), %xmm1
	movsd	.LC0(%rip), %xmm0
	mulsd	%xmm1, %xmm0
	mulsd	-24(%rbp), %xmm0
	mulsd	-16(%rbp), %xmm0
	movl	-48(%rbp), %eax
	pxor	%xmm2, %xmm2
	cvtsi2sdl	%eax, %xmm2
	movsd	-24(%rbp), %xmm1
	movapd	%xmm1, %xmm3
	mulsd	-16(%rbp), %xmm3
	movsd	-32(%rbp), %xmm1
	mulsd	-24(%rbp), %xmm1
	addsd	%xmm1, %xmm3
	movsd	-16(%rbp), %xmm1
	mulsd	-32(%rbp), %xmm1
	addsd	%xmm3, %xmm1
	mulsd	%xmm2, %xmm1
	ucomisd	%xmm1, %xmm0
	jp	.L5
	ucomisd	%xmm1, %xmm0
	jne	.L5
	addl	$1, -36(%rbp)
	movsd	-16(%rbp), %xmm1
	movsd	-24(%rbp), %xmm0
	movq	-32(%rbp), %rax
	movapd	%xmm1, %xmm2
	movapd	%xmm0, %xmm1
	movq	%rax, %xmm0
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$3, %eax
	call	printf@PLT
.L5:
	cmpl	$1, -36(%rbp)
	je	.L20
	addl	$1, -40(%rbp)
.L4:
	cmpl	$3500, -40(%rbp)
	jle	.L11
	jmp	.L10
.L20:
	nop
.L10:
	cmpl	$1, -36(%rbp)
	jne	.L12
	movl	$0, -36(%rbp)
	jmp	.L2
.L12:
	addl	$1, -44(%rbp)
.L3:
	cmpl	$3500, -44(%rbp)
	jle	.L13
.L2:
	leaq	-48(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	cmpl	$-1, %eax
	jne	.L14
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L16
	call	__stack_chk_fail@PLT
.L16:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC0:
	.long	0
	.long	1074790400
	.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:
