Given the following C code and unoptimized assembly code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
// AOJ 2635 Snake
// 2018.3.19 bal4u

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>

// [library]

//#define getchar_unlocked()  getchar()
int in()	// get non-negative integer from stdin
{
	int n = 0, c = getchar_unlocked();
	do n = 10*n + (c & 0xf), c = getchar_unlocked(); while (c >= '0');
	return n;
}

typedef struct { int x, y; } PP;

#define INF		 1e8
#define EPS		 1e-8
#define EQ(a,b)  (fabs((a)-(b))<EPS)

PP vsub(PP p1, PP p2) { PP r; r.x = p1.x - p2.x, r.y = p1.y - p2.y; return r; }
double vabs(PP a) { return hypot(a.x, a.y); }
double cross(PP a, PP b) { return (double)a.x * b.y - (double)a.y * b.x; }

double polygon_area(int n, PP *p)
{
   int i;
   double s;

   if (n < 3) return 0;
   s = 0; p[n] = p[0];
   for (i = 0; i < n; i++) s += cross(p[i], p[i+1]);
   return fabs(s)/2;
}

int cmp(PP *a, PP *b) {
	if (a->y - b->y) return a->y - b->y;
	return a->x - b->x;
}

int convex_hull(int n, PP *ps, PP *po)
{
	int i, k, j = 0;

	qsort(ps, n, sizeof(PP), cmp);
	for (i = 0; i < n; i++) {
		while (j > 1 && cross(vsub(po[j-1], po[j-2]), vsub(ps[i], po[j-1])) <= 0) j--;
		po[j++] = ps[i];
	}
	k = j;
	for (i = n - 2; i >= 0; i--) {
		while (j > k && cross(vsub(po[j-1], po[j-2]), vsub(ps[i], po[j-1])) <= 0) j--;
		po[j++] = ps[i];
	}
	return j-1;
}
// [\library]  

PP  snake[1002];
PP  pp[2][1002];

void reverse(int n, PP *p)
{
	int i, j;
	memcpy(pp[0], p, sizeof(PP)*n);
	j = n, i = 0; while (j--) p[i++] = pp[0][j];
}

int check(int n, PP *p)
{
	int i, k, k1, k2;
	double prev, s;

	prev = 0, k = 0, k1 = 0, k2 = 1;
	for (i = 0; i < n; i++) {
		pp[k1][k++] = p[i];
		if (i < 2) continue;
		k = convex_hull(k, pp[k1], pp[k2]);
		s = polygon_area(k, pp[k2]);
		if (EQ(s, prev)) return 0;
		prev = s, k1 = k2, k2 = !k2;
	}
	return 1;
}

int main()
{
	int n, i, ans;

	n = in();
	for (i = 0; i < n; i++) snake[i].x = in(), snake[i].y = in();
	ans = 0;
	if (check(n, snake)) {
		reverse(n, snake);
		if (check(n, snake)) ans = 1;
	}
	puts(ans? "Possible": "Impossible");
	return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	in
	.type	in, @function
in:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	movl	$0, -8(%rbp)
	call	getchar_unlocked@PLT
	movl	%eax, -4(%rbp)
.L2:
	movl	-8(%rbp), %edx
	movl	%edx, %eax
	sall	$2, %eax
	addl	%edx, %eax
	addl	%eax, %eax
	movl	%eax, %edx
	movl	-4(%rbp), %eax
	andl	$15, %eax
	addl	%edx, %eax
	movl	%eax, -8(%rbp)
	call	getchar_unlocked@PLT
	movl	%eax, -4(%rbp)
	cmpl	$47, -4(%rbp)
	jg	.L2
	movl	-8(%rbp), %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	in, .-in
	.globl	vsub
	.type	vsub, @function
vsub:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -24(%rbp)
	movq	%rsi, -32(%rbp)
	movl	-24(%rbp), %eax
	movl	-32(%rbp), %edx
	subl	%edx, %eax
	movl	%eax, -8(%rbp)
	movl	-20(%rbp), %eax
	movl	-28(%rbp), %edx
	subl	%edx, %eax
	movl	%eax, -4(%rbp)
	movq	-8(%rbp), %rax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	vsub, .-vsub
	.globl	vabs
	.type	vabs, @function
vabs:
.LFB8:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	movq	%rdi, -8(%rbp)
	movl	-4(%rbp), %eax
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%eax, %xmm0
	movl	-8(%rbp), %eax
	pxor	%xmm2, %xmm2
	cvtsi2sdl	%eax, %xmm2
	movq	%xmm2, %rax
	movapd	%xmm0, %xmm1
	movq	%rax, %xmm0
	call	hypot@PLT
	movq	%xmm0, %rax
	movq	%rax, %xmm0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	vabs, .-vabs
	.globl	cross
	.type	cross, @function
cross:
.LFB9:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -8(%rbp)
	movq	%rsi, -16(%rbp)
	movl	-8(%rbp), %eax
	pxor	%xmm1, %xmm1
	cvtsi2sdl	%eax, %xmm1
	movl	-12(%rbp), %eax
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%eax, %xmm0
	mulsd	%xmm1, %xmm0
	movl	-4(%rbp), %eax
	pxor	%xmm2, %xmm2
	cvtsi2sdl	%eax, %xmm2
	movl	-16(%rbp), %eax
	pxor	%xmm1, %xmm1
	cvtsi2sdl	%eax, %xmm1
	mulsd	%xmm2, %xmm1
	subsd	%xmm1, %xmm0
	movq	%xmm0, %rax
	movq	%rax, %xmm0
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	cross, .-cross
	.globl	polygon_area
	.type	polygon_area, @function
polygon_area:
.LFB10:
	.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
	movl	%edi, -20(%rbp)
	movq	%rsi, -32(%rbp)
	cmpl	$2, -20(%rbp)
	jg	.L11
	pxor	%xmm0, %xmm0
	jmp	.L12
.L11:
	pxor	%xmm0, %xmm0
	movsd	%xmm0, -8(%rbp)
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	addq	%rax, %rdx
	movq	-32(%rbp), %rax
	movq	(%rax), %rax
	movq	%rax, (%rdx)
	movl	$0, -12(%rbp)
	jmp	.L13
.L14:
	movl	-12(%rbp), %eax
	cltq
	addq	$1, %rax
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	addq	%rax, %rdx
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rcx
	movq	-32(%rbp), %rax
	addq	%rcx, %rax
	movq	(%rdx), %rsi
	movq	(%rax), %rdi
	call	cross
	movsd	-8(%rbp), %xmm1
	addsd	%xmm1, %xmm0
	movsd	%xmm0, -8(%rbp)
	addl	$1, -12(%rbp)
.L13:
	movl	-12(%rbp), %eax
	cmpl	-20(%rbp), %eax
	jl	.L14
	movsd	-8(%rbp), %xmm0
	movq	.LC1(%rip), %xmm1
	andpd	%xmm1, %xmm0
	movsd	.LC2(%rip), %xmm1
	divsd	%xmm1, %xmm0
.L12:
	movq	%xmm0, %rax
	movq	%rax, %xmm0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	polygon_area, .-polygon_area
	.globl	cmp
	.type	cmp, @function
cmp:
.LFB11:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -8(%rbp)
	movq	%rsi, -16(%rbp)
	movq	-8(%rbp), %rax
	movl	4(%rax), %edx
	movq	-16(%rbp), %rax
	movl	4(%rax), %eax
	cmpl	%eax, %edx
	je	.L16
	movq	-8(%rbp), %rax
	movl	4(%rax), %edx
	movq	-16(%rbp), %rax
	movl	4(%rax), %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	jmp	.L17
.L16:
	movq	-8(%rbp), %rax
	movl	(%rax), %edx
	movq	-16(%rbp), %rax
	movl	(%rax), %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
.L17:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	cmp, .-cmp
	.globl	convex_hull
	.type	convex_hull, @function
convex_hull:
.LFB12:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%rbx
	subq	$56, %rsp
	.cfi_offset 3, -24
	movl	%edi, -36(%rbp)
	movq	%rsi, -48(%rbp)
	movq	%rdx, -56(%rbp)
	movl	$0, -24(%rbp)
	movl	-36(%rbp), %eax
	movslq	%eax, %rsi
	movq	-48(%rbp), %rax
	leaq	cmp(%rip), %rdx
	movq	%rdx, %rcx
	movl	$8, %edx
	movq	%rax, %rdi
	call	qsort@PLT
	movl	$0, -28(%rbp)
	jmp	.L19
.L22:
	subl	$1, -24(%rbp)
.L20:
	cmpl	$1, -24(%rbp)
	jle	.L21
	movl	-24(%rbp), %eax
	cltq
	salq	$3, %rax
	leaq	-8(%rax), %rdx
	movq	-56(%rbp), %rax
	addq	%rax, %rdx
	movl	-28(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rcx
	movq	-48(%rbp), %rax
	addq	%rcx, %rax
	movq	(%rdx), %rsi
	movq	(%rax), %rdi
	call	vsub
	movq	%rax, %rbx
	movl	-24(%rbp), %eax
	cltq
	salq	$3, %rax
	leaq	-16(%rax), %rdx
	movq	-56(%rbp), %rax
	addq	%rax, %rdx
	movl	-24(%rbp), %eax
	cltq
	salq	$3, %rax
	leaq	-8(%rax), %rcx
	movq	-56(%rbp), %rax
	addq	%rcx, %rax
	movq	(%rdx), %rsi
	movq	(%rax), %rdi
	call	vsub
	movq	%rbx, %rsi
	movq	%rax, %rdi
	call	cross
	pxor	%xmm1, %xmm1
	comisd	%xmm0, %xmm1
	jnb	.L22
.L21:
	movl	-28(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-48(%rbp), %rax
	leaq	(%rdx,%rax), %rcx
	movl	-24(%rbp), %eax
	leal	1(%rax), %edx
	movl	%edx, -24(%rbp)
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-56(%rbp), %rax
	addq	%rax, %rdx
	movq	(%rcx), %rax
	movq	%rax, (%rdx)
	addl	$1, -28(%rbp)
.L19:
	movl	-28(%rbp), %eax
	cmpl	-36(%rbp), %eax
	jl	.L20
	movl	-24(%rbp), %eax
	movl	%eax, -20(%rbp)
	movl	-36(%rbp), %eax
	subl	$2, %eax
	movl	%eax, -28(%rbp)
	jmp	.L24
.L27:
	subl	$1, -24(%rbp)
.L25:
	movl	-24(%rbp), %eax
	cmpl	-20(%rbp), %eax
	jle	.L26
	movl	-24(%rbp), %eax
	cltq
	salq	$3, %rax
	leaq	-8(%rax), %rdx
	movq	-56(%rbp), %rax
	addq	%rax, %rdx
	movl	-28(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rcx
	movq	-48(%rbp), %rax
	addq	%rcx, %rax
	movq	(%rdx), %rsi
	movq	(%rax), %rdi
	call	vsub
	movq	%rax, %rbx
	movl	-24(%rbp), %eax
	cltq
	salq	$3, %rax
	leaq	-16(%rax), %rdx
	movq	-56(%rbp), %rax
	addq	%rax, %rdx
	movl	-24(%rbp), %eax
	cltq
	salq	$3, %rax
	leaq	-8(%rax), %rcx
	movq	-56(%rbp), %rax
	addq	%rcx, %rax
	movq	(%rdx), %rsi
	movq	(%rax), %rdi
	call	vsub
	movq	%rbx, %rsi
	movq	%rax, %rdi
	call	cross
	pxor	%xmm1, %xmm1
	comisd	%xmm0, %xmm1
	jnb	.L27
.L26:
	movl	-28(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-48(%rbp), %rax
	leaq	(%rdx,%rax), %rcx
	movl	-24(%rbp), %eax
	leal	1(%rax), %edx
	movl	%edx, -24(%rbp)
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-56(%rbp), %rax
	addq	%rax, %rdx
	movq	(%rcx), %rax
	movq	%rax, (%rdx)
	subl	$1, -28(%rbp)
.L24:
	cmpl	$0, -28(%rbp)
	jns	.L25
	movl	-24(%rbp), %eax
	subl	$1, %eax
	movq	-8(%rbp), %rbx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	convex_hull, .-convex_hull
	.globl	snake
	.bss
	.align 32
	.type	snake, @object
	.size	snake, 8016
snake:
	.zero	8016
	.globl	pp
	.align 32
	.type	pp, @object
	.size	pp, 16032
pp:
	.zero	16032
	.text
	.globl	reverse
	.type	reverse, @function
reverse:
.LFB13:
	.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
	movl	%edi, -20(%rbp)
	movq	%rsi, -32(%rbp)
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	movq	%rax, %rsi
	leaq	pp(%rip), %rax
	movq	%rax, %rdi
	call	memcpy@PLT
	movl	-20(%rbp), %eax
	movl	%eax, -4(%rbp)
	movl	$0, -8(%rbp)
	jmp	.L31
.L32:
	movl	-8(%rbp), %eax
	leal	1(%rax), %edx
	movl	%edx, -8(%rbp)
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	addq	%rax, %rdx
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rcx
	leaq	pp(%rip), %rax
	movq	(%rcx,%rax), %rax
	movq	%rax, (%rdx)
.L31:
	movl	-4(%rbp), %eax
	leal	-1(%rax), %edx
	movl	%edx, -4(%rbp)
	testl	%eax, %eax
	jne	.L32
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	reverse, .-reverse
	.globl	check
	.type	check, @function
check:
.LFB14:
	.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
	movl	%edi, -36(%rbp)
	movq	%rsi, -48(%rbp)
	pxor	%xmm0, %xmm0
	movsd	%xmm0, -16(%rbp)
	movl	$0, -28(%rbp)
	movl	$0, -24(%rbp)
	movl	$1, -20(%rbp)
	movl	$0, -32(%rbp)
	jmp	.L34
.L40:
	movl	-32(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-48(%rbp), %rax
	leaq	(%rdx,%rax), %rsi
	movl	-28(%rbp), %eax
	leal	1(%rax), %edx
	movl	%edx, -28(%rbp)
	movslq	%eax, %rdx
	movl	-24(%rbp), %eax
	cltq
	imulq	$1002, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,8), %rcx
	leaq	pp(%rip), %rdx
	movq	(%rsi), %rax
	movq	%rax, (%rcx,%rdx)
	cmpl	$1, -32(%rbp)
	jle	.L43
	movl	-20(%rbp), %eax
	cltq
	imulq	$8016, %rax, %rax
	leaq	pp(%rip), %rdx
	addq	%rax, %rdx
	movl	-24(%rbp), %eax
	cltq
	imulq	$8016, %rax, %rax
	leaq	pp(%rip), %rcx
	addq	%rax, %rcx
	movl	-28(%rbp), %eax
	movq	%rcx, %rsi
	movl	%eax, %edi
	call	convex_hull
	movl	%eax, -28(%rbp)
	movl	-20(%rbp), %eax
	cltq
	imulq	$8016, %rax, %rax
	leaq	pp(%rip), %rdx
	addq	%rax, %rdx
	movl	-28(%rbp), %eax
	movq	%rdx, %rsi
	movl	%eax, %edi
	call	polygon_area
	movq	%xmm0, %rax
	movq	%rax, -8(%rbp)
	movsd	-8(%rbp), %xmm0
	subsd	-16(%rbp), %xmm0
	movq	.LC1(%rip), %xmm1
	andpd	%xmm0, %xmm1
	movsd	.LC3(%rip), %xmm0
	comisd	%xmm1, %xmm0
	jbe	.L42
	movl	$0, %eax
	jmp	.L39
.L42:
	movsd	-8(%rbp), %xmm0
	movsd	%xmm0, -16(%rbp)
	movl	-20(%rbp), %eax
	movl	%eax, -24(%rbp)
	cmpl	$0, -20(%rbp)
	sete	%al
	movzbl	%al, %eax
	movl	%eax, -20(%rbp)
	jmp	.L36
.L43:
	nop
.L36:
	addl	$1, -32(%rbp)
.L34:
	movl	-32(%rbp), %eax
	cmpl	-36(%rbp), %eax
	jl	.L40
	movl	$1, %eax
.L39:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	check, .-check
	.section	.rodata
.LC4:
	.string	"Possible"
.LC5:
	.string	"Impossible"
	.text
	.globl	main
	.type	main, @function
main:
.LFB15:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	movl	$0, %eax
	call	in
	movl	%eax, -4(%rbp)
	movl	$0, -12(%rbp)
	jmp	.L45
.L46:
	movl	$0, %eax
	call	in
	movl	-12(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,8), %rcx
	leaq	snake(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	movl	$0, %eax
	call	in
	movl	-12(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,8), %rcx
	leaq	4+snake(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	addl	$1, -12(%rbp)
.L45:
	movl	-12(%rbp), %eax
	cmpl	-4(%rbp), %eax
	jl	.L46
	movl	$0, -8(%rbp)
	movl	-4(%rbp), %eax
	leaq	snake(%rip), %rdx
	movq	%rdx, %rsi
	movl	%eax, %edi
	call	check
	testl	%eax, %eax
	je	.L47
	movl	-4(%rbp), %eax
	leaq	snake(%rip), %rdx
	movq	%rdx, %rsi
	movl	%eax, %edi
	call	reverse
	movl	-4(%rbp), %eax
	leaq	snake(%rip), %rdx
	movq	%rdx, %rsi
	movl	%eax, %edi
	call	check
	testl	%eax, %eax
	je	.L47
	movl	$1, -8(%rbp)
.L47:
	cmpl	$0, -8(%rbp)
	je	.L48
	leaq	.LC4(%rip), %rax
	jmp	.L49
.L48:
	leaq	.LC5(%rip), %rax
.L49:
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.size	main, .-main
	.section	.rodata
	.align 16
.LC1:
	.long	-1
	.long	2147483647
	.long	0
	.long	0
	.align 8
.LC2:
	.long	0
	.long	1073741824
	.align 8
.LC3:
	.long	-500134854
	.long	1044740494
	.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
	.p2align 4
	.globl	cmp
	.type	cmp, @function
cmp:
.LFB56:
	.cfi_startproc
	endbr64
	movl	4(%rdi), %eax
	movl	4(%rsi), %edx
	cmpl	%edx, %eax
	je	.L2
	subl	%edx, %eax
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	movl	(%rdi), %eax
	subl	(%rsi), %eax
	ret
	.cfi_endproc
.LFE56:
	.size	cmp, .-cmp
	.p2align 4
	.globl	in
	.type	in, @function
in:
.LFB51:
	.cfi_startproc
	endbr64
	movq	stdin(%rip), %rdi
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	movq	8(%rdi), %rax
	movq	16(%rdi), %rcx
	cmpq	%rcx, %rax
	jnb	.L14
	leaq	1(%rax), %rdx
	movq	%rdx, 8(%rdi)
	movzbl	(%rax), %eax
.L7:
	xorl	%r12d, %r12d
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L8:
	leaq	1(%rdx), %rax
	movq	%rax, 8(%rdi)
	movzbl	(%rdx), %eax
	cmpl	$47, %eax
	jle	.L5
.L9:
	movq	8(%rdi), %rdx
	movq	16(%rdi), %rcx
.L11:
	leal	(%r12,%r12,4), %esi
	andl	$15, %eax
	leal	(%rax,%rsi,2), %r12d
	cmpq	%rcx, %rdx
	jb	.L8
	call	__uflow@PLT
	cmpl	$47, %eax
	jle	.L5
	movq	stdin(%rip), %rdi
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L5:
	movl	%r12d, %eax
	popq	%r12
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L14:
	.cfi_restore_state
	call	__uflow@PLT
	movq	stdin(%rip), %rdi
	movq	8(%rdi), %rdx
	movq	16(%rdi), %rcx
	jmp	.L7
	.cfi_endproc
.LFE51:
	.size	in, .-in
	.p2align 4
	.globl	vsub
	.type	vsub, @function
vsub:
.LFB52:
	.cfi_startproc
	endbr64
	movq	%rdi, %xmm0
	movq	%rsi, %xmm1
	psubd	%xmm1, %xmm0
	movq	%xmm0, %rax
	ret
	.cfi_endproc
.LFE52:
	.size	vsub, .-vsub
	.p2align 4
	.globl	vabs
	.type	vabs, @function
vabs:
.LFB53:
	.cfi_startproc
	endbr64
	movq	%rdi, %rax
	pxor	%xmm0, %xmm0
	pxor	%xmm1, %xmm1
	sarq	$32, %rax
	cvtsi2sdl	%edi, %xmm0
	cvtsi2sdl	%eax, %xmm1
	jmp	hypot@PLT
	.cfi_endproc
.LFE53:
	.size	vabs, .-vabs
	.p2align 4
	.globl	cross
	.type	cross, @function
cross:
.LFB54:
	.cfi_startproc
	endbr64
	pxor	%xmm0, %xmm0
	pxor	%xmm1, %xmm1
	pxor	%xmm2, %xmm2
	movq	%rsi, %rax
	sarq	$32, %rax
	cvtsi2sdl	%edi, %xmm0
	sarq	$32, %rdi
	cvtsi2sdl	%eax, %xmm1
	cvtsi2sdl	%esi, %xmm2
	mulsd	%xmm1, %xmm0
	pxor	%xmm1, %xmm1
	cvtsi2sdl	%edi, %xmm1
	mulsd	%xmm2, %xmm1
	subsd	%xmm1, %xmm0
	ret
	.cfi_endproc
.LFE54:
	.size	cross, .-cross
	.p2align 4
	.globl	polygon_area
	.type	polygon_area, @function
polygon_area:
.LFB55:
	.cfi_startproc
	endbr64
	pxor	%xmm0, %xmm0
	cmpl	$2, %edi
	jle	.L18
	movq	(%rsi), %rdx
	movslq	%edi, %rax
	subl	$1, %edi
	leaq	16(%rsi,%rdi,8), %r8
	movq	%rdx, (%rsi,%rax,8)
	movl	4(%rsi), %ecx
	leaq	8(%rsi), %rax
	movl	(%rsi), %edx
	.p2align 4,,10
	.p2align 3
.L20:
	movl	%ecx, %esi
	movl	4(%rax), %ecx
	movl	%edx, %edi
	pxor	%xmm1, %xmm1
	pxor	%xmm2, %xmm2
	cvtsi2sdl	%edi, %xmm1
	movl	(%rax), %edx
	pxor	%xmm3, %xmm3
	cvtsi2sdl	%ecx, %xmm2
	addq	$8, %rax
	cvtsi2sdl	%edx, %xmm3
	mulsd	%xmm2, %xmm1
	pxor	%xmm2, %xmm2
	cvtsi2sdl	%esi, %xmm2
	mulsd	%xmm3, %xmm2
	subsd	%xmm2, %xmm1
	addsd	%xmm1, %xmm0
	cmpq	%rax, %r8
	jne	.L20
	andpd	.LC1(%rip), %xmm0
	mulsd	.LC2(%rip), %xmm0
.L18:
	ret
	.cfi_endproc
.LFE55:
	.size	polygon_area, .-polygon_area
	.p2align 4
	.globl	convex_hull
	.type	convex_hull, @function
convex_hull:
.LFB57:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	movslq	%edi, %rax
	leaq	cmp(%rip), %rcx
	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
	movq	%rsi, %r12
	movq	%rax, %rsi
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	movq	%r12, %rdi
	movq	%rax, %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	movq	%rdx, %rbx
	movl	$8, %edx
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	movq	%rax, (%rsp)
	call	qsort@PLT
	testl	%ebp, %ebp
	jle	.L37
	movq	(%r12), %rax
	movq	%rax, (%rbx)
	cmpl	$1, %ebp
	je	.L38
	leal	-2(%rbp), %eax
	leaq	8(%r12), %r14
	pxor	%xmm3, %xmm3
	movl	%eax, 12(%rsp)
	leaq	16(%r12,%rax,8), %r15
	movl	$1, %eax
	.p2align 4,,10
	.p2align 3
.L25:
	movq	(%r14), %rcx
	addq	$8, %r14
	leal	1(%rax), %edx
	movq	%rcx, (%rbx,%rax,8)
	cmpq	%r14, %r15
	je	.L28
	movslq	%edx, %rax
	movl	(%r14), %r10d
	movl	4(%r14), %r9d
	leaq	(%rbx,%rax,8), %rax
	movl	-4(%rax), %esi
	movl	-8(%rax), %ecx
	jmp	.L29
	.p2align 4,,10
	.p2align 3
.L27:
	subl	$1, %edx
	subq	$8, %rax
	cmpl	$1, %edx
	je	.L26
.L29:
	movl	%r10d, %r8d
	movl	%ecx, %r11d
	movl	%r9d, %r13d
	movl	%esi, %edi
	subl	%ecx, %r8d
	movl	-16(%rax), %ecx
	subl	%esi, %r13d
	pxor	%xmm0, %xmm0
	pxor	%xmm1, %xmm1
	movl	-12(%rax), %esi
	pxor	%xmm2, %xmm2
	subl	%ecx, %r11d
	cvtsi2sdl	%r13d, %xmm1
	cvtsi2sdl	%r11d, %xmm0
	subl	%esi, %edi
	cvtsi2sdl	%r8d, %xmm2
	mulsd	%xmm1, %xmm0
	pxor	%xmm1, %xmm1
	cvtsi2sdl	%edi, %xmm1
	mulsd	%xmm2, %xmm1
	subsd	%xmm1, %xmm0
	comisd	%xmm0, %xmm3
	jnb	.L27
.L26:
	movslq	%edx, %rax
	jmp	.L25
	.p2align 4,,10
	.p2align 3
.L28:
	movl	12(%rsp), %eax
.L36:
	movslq	%eax, %rsi
	movslq	%edx, %rcx
	leal	1(%rdx), %edi
	movq	(%r12,%rsi,8), %rsi
	movq	%rsi, (%rbx,%rcx,8)
	testl	%eax, %eax
	je	.L39
	movq	(%rsp), %rax
	pxor	%xmm3, %xmm3
	salq	$3, %rax
	leaq	(%r12,%rax), %r13
	leaq	-8(%r12,%rax), %r12
	leal	-3(%rbp), %eax
	salq	$3, %rax
	subq	%rax, %r12
	.p2align 4,,10
	.p2align 3
.L32:
	cmpl	%edx, %edi
	jle	.L41
	movslq	%edi, %rax
	movl	-24(%r13), %ebp
	movl	-20(%r13), %r11d
	movl	%edi, %r9d
	leaq	(%rbx,%rax,8), %rax
	movl	-4(%rax), %esi
	movl	-8(%rax), %ecx
	jmp	.L35
	.p2align 4,,10
	.p2align 3
.L34:
	subl	$1, %r9d
	subq	$8, %rax
	cmpl	%edx, %r9d
	je	.L33
.L35:
	movl	%ebp, %r10d
	movl	%ecx, %r8d
	movl	%r11d, %r14d
	movl	%esi, %edi
	subl	%ecx, %r10d
	movl	-16(%rax), %ecx
	subl	%esi, %r14d
	pxor	%xmm0, %xmm0
	pxor	%xmm1, %xmm1
	movl	-12(%rax), %esi
	pxor	%xmm2, %xmm2
	subl	%ecx, %r8d
	cvtsi2sdl	%r14d, %xmm1
	cvtsi2sdl	%r8d, %xmm0
	subl	%esi, %edi
	cvtsi2sdl	%r10d, %xmm2
	mulsd	%xmm1, %xmm0
	pxor	%xmm1, %xmm1
	cvtsi2sdl	%edi, %xmm1
	mulsd	%xmm2, %xmm1
	subsd	%xmm1, %xmm0
	comisd	%xmm0, %xmm3
	jnb	.L34
.L33:
	movq	-24(%r13), %rcx
	movslq	%r9d, %rax
	subq	$8, %r13
	leal	1(%r9), %edi
	movq	%rcx, (%rbx,%rax,8)
	cmpq	%r13, %r12
	jne	.L32
.L23:
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	movl	%r9d, %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
.L37:
	.cfi_restore_state
	movl	$-1, %r9d
	xorl	%edx, %edx
.L24:
	movl	%ebp, %eax
	subl	$2, %eax
	js	.L23
	jmp	.L36
.L38:
	movl	$1, %edx
	xorl	%r9d, %r9d
	jmp	.L24
.L39:
	movl	%edx, %r9d
	jmp	.L23
.L41:
	movl	%edi, %r9d
	jmp	.L33
	.cfi_endproc
.LFE57:
	.size	convex_hull, .-convex_hull
	.p2align 4
	.globl	reverse
	.type	reverse, @function
reverse:
.LFB58:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	movslq	%edi, %rax
	movl	$16032, %ecx
	leaq	pp(%rip), %rdi
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	leaq	0(,%rax,8), %rbp
	movq	%rax, %r12
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	movq	%rbp, %rdx
	movq	%rsi, %rbx
	call	__memcpy_chk@PLT
	testl	%r12d, %r12d
	je	.L47
	leal	-1(%r12), %edx
	leaq	0(%rbp,%rax), %rax
	movq	%rbx, %rsi
	leaq	8(%rbx,%rdx,8), %rcx
	.p2align 4,,10
	.p2align 3
.L49:
	movq	-8(%rax), %rdx
	addq	$8, %rsi
	subq	$8, %rax
	movq	%rdx, -8(%rsi)
	cmpq	%rcx, %rsi
	jne	.L49
.L47:
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE58:
	.size	reverse, .-reverse
	.p2align 4
	.globl	check
	.type	check, @function
check:
.LFB59:
	.cfi_startproc
	endbr64
	testl	%edi, %edi
	jle	.L71
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	xorl	%r8d, %r8d
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	movq	%rsi, %r14
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	leaq	pp(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	movl	$1, %r12d
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	movl	$1, %ebp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	movslq	%edi, %rbx
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	movq	(%rsi), %rax
	movl	$1, %esi
	movq	$0x000000000, 8(%rsp)
	movq	%rax, pp(%rip)
	cmpq	%rbp, %rbx
	je	.L72
	.p2align 4,,10
	.p2align 3
.L61:
	movslq	%r8d, %rax
	movq	(%r14,%rbp,8), %rcx
	leal	1(%rsi), %edi
	imulq	$1002, %rax, %rdx
	addq	%rsi, %rdx
	movq	%rcx, 0(%r13,%rdx,8)
	cmpl	$1, %ebp
	jle	.L64
	movslq	%r12d, %r15
	imulq	$8016, %rax, %rsi
	imulq	$8016, %r15, %r15
	addq	%r13, %rsi
	addq	%r13, %r15
	movq	%r15, %rdx
	call	convex_hull
	movslq	%eax, %rsi
	cmpl	$2, %esi
	jle	.L65
	movq	(%r15), %rdx
	movslq	%esi, %rax
	leal	-1(%rsi), %edi
	pxor	%xmm2, %xmm2
	leaq	16(%r15,%rdi,8), %r9
	movq	%rdx, (%r15,%rax,8)
	movl	4(%r15), %ecx
	leaq	8(%r15), %rax
	movl	(%r15), %edx
	.p2align 4,,10
	.p2align 3
.L60:
	movl	%ecx, %edi
	movl	4(%rax), %ecx
	movl	%edx, %r8d
	pxor	%xmm0, %xmm0
	pxor	%xmm1, %xmm1
	cvtsi2sdl	%r8d, %xmm0
	movl	(%rax), %edx
	pxor	%xmm3, %xmm3
	cvtsi2sdl	%ecx, %xmm1
	addq	$8, %rax
	cvtsi2sdl	%edx, %xmm3
	mulsd	%xmm1, %xmm0
	pxor	%xmm1, %xmm1
	cvtsi2sdl	%edi, %xmm1
	mulsd	%xmm3, %xmm1
	subsd	%xmm1, %xmm0
	addsd	%xmm0, %xmm2
	cmpq	%rax, %r9
	jne	.L60
	movq	.LC1(%rip), %xmm1
	andpd	%xmm1, %xmm2
	mulsd	.LC2(%rip), %xmm2
.L59:
	movapd	%xmm2, %xmm0
	subsd	8(%rsp), %xmm0
	movsd	.LC3(%rip), %xmm5
	andpd	%xmm1, %xmm0
	comisd	%xmm0, %xmm5
	ja	.L66
	movl	%r12d, %r8d
	movsd	%xmm2, 8(%rsp)
	xorl	$1, %r12d
.L58:
	addq	$1, %rbp
	cmpq	%rbp, %rbx
	jne	.L61
.L72:
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	movl	$1, %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
	.p2align 4,,10
	.p2align 3
.L64:
	.cfi_restore_state
	movslq	%edi, %rsi
	jmp	.L58
	.p2align 4,,10
	.p2align 3
.L65:
	movq	.LC1(%rip), %xmm1
	pxor	%xmm2, %xmm2
	jmp	.L59
.L66:
	addq	$24, %rsp
	.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
.L71:
	.cfi_restore 3
	.cfi_restore 6
	.cfi_restore 12
	.cfi_restore 13
	.cfi_restore 14
	.cfi_restore 15
	movl	$1, %eax
	ret
	.cfi_endproc
.LFE59:
	.size	check, .-check
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC4:
	.string	"Possible"
.LC5:
	.string	"Impossible"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB60:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	xorl	%eax, %eax
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	leaq	snake(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	call	in
	movl	%eax, %ebp
	testl	%eax, %eax
	jle	.L90
	leal	-1(%rax), %eax
	leaq	8(%r12), %rdx
	movq	%r12, %r13
	leaq	(%rdx,%rax,8), %rbx
	.p2align 4,,10
	.p2align 3
.L89:
	movq	stdin(%rip), %rdi
	movq	8(%rdi), %rax
	movq	16(%rdi), %rcx
	cmpq	%rcx, %rax
	jnb	.L96
	leaq	1(%rax), %rdx
	movq	%rdx, 8(%rdi)
	movzbl	(%rax), %eax
.L78:
	xorl	%r14d, %r14d
	jmp	.L82
	.p2align 4,,10
	.p2align 3
.L79:
	leaq	1(%rdx), %rsi
	movq	%rsi, 8(%rdi)
	movzbl	(%rdx), %eax
	cmpl	$47, %eax
	jle	.L81
.L80:
	movq	%rsi, %rdx
.L82:
	leal	(%r14,%r14,4), %esi
	andl	$15, %eax
	leal	(%rax,%rsi,2), %r14d
	cmpq	%rcx, %rdx
	jb	.L79
	call	__uflow@PLT
	movq	stdin(%rip), %rdi
	movq	8(%rdi), %rsi
	movq	16(%rdi), %rcx
	cmpl	$47, %eax
	jg	.L80
	.p2align 4,,10
	.p2align 3
.L81:
	movl	%r14d, 0(%r13)
	cmpq	%rcx, %rsi
	jnb	.L97
	leaq	1(%rsi), %rdx
	movq	%rdx, 8(%rdi)
	movzbl	(%rsi), %eax
.L84:
	xorl	%r14d, %r14d
	jmp	.L88
	.p2align 4,,10
	.p2align 3
.L85:
	leaq	1(%rdx), %rax
	movq	%rax, 8(%rdi)
	movzbl	(%rdx), %eax
	cmpl	$47, %eax
	jle	.L87
.L86:
	movq	8(%rdi), %rdx
	movq	16(%rdi), %rcx
.L88:
	leal	(%r14,%r14,4), %esi
	andl	$15, %eax
	leal	(%rax,%rsi,2), %r14d
	cmpq	%rcx, %rdx
	jb	.L85
	call	__uflow@PLT
	cmpl	$47, %eax
	jle	.L87
	movq	stdin(%rip), %rdi
	jmp	.L86
	.p2align 4,,10
	.p2align 3
.L87:
	movl	%r14d, 4(%r13)
	addq	$8, %r13
	cmpq	%r13, %rbx
	jne	.L89
.L90:
	movq	%r12, %rsi
	movl	%ebp, %edi
	call	check
	testl	%eax, %eax
	jne	.L98
.L76:
	leaq	.LC5(%rip), %rdi
.L91:
	call	puts@PLT
	popq	%rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xorl	%eax, %eax
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L97:
	.cfi_restore_state
	call	__uflow@PLT
	movq	stdin(%rip), %rdi
	movq	8(%rdi), %rdx
	movq	16(%rdi), %rcx
	jmp	.L84
	.p2align 4,,10
	.p2align 3
.L96:
	call	__uflow@PLT
	movq	stdin(%rip), %rdi
	movq	8(%rdi), %rdx
	movq	16(%rdi), %rcx
	jmp	.L78
.L98:
	movq	%r12, %rsi
	movl	%ebp, %edi
	call	reverse
	movl	%ebp, %edi
	movq	%r12, %rsi
	call	check
	leaq	.LC4(%rip), %rdi
	testl	%eax, %eax
	jne	.L91
	jmp	.L76
	.cfi_endproc
.LFE60:
	.size	main, .-main
	.globl	pp
	.bss
	.align 32
	.type	pp, @object
	.size	pp, 16032
pp:
	.zero	16032
	.globl	snake
	.align 32
	.type	snake, @object
	.size	snake, 8016
snake:
	.zero	8016
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC1:
	.long	-1
	.long	2147483647
	.long	0
	.long	0
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC2:
	.long	0
	.long	1071644672
	.align 8
.LC3:
	.long	-500134854
	.long	1044740494
	.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
	.p2align 4
	.globl	cmp
	.type	cmp, @function
cmp:
.LFB56:
	.cfi_startproc
	endbr64
	movl	4(%rdi), %eax
	movl	4(%rsi), %edx
	cmpl	%edx, %eax
	je	.L2
	subl	%edx, %eax
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	movl	(%rdi), %eax
	subl	(%rsi), %eax
	ret
	.cfi_endproc
.LFE56:
	.size	cmp, .-cmp
	.p2align 4
	.globl	in
	.type	in, @function
in:
.LFB51:
	.cfi_startproc
	endbr64
	movq	stdin(%rip), %rdi
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	movq	8(%rdi), %rax
	movq	16(%rdi), %rcx
	cmpq	%rcx, %rax
	jnb	.L14
	leaq	1(%rax), %rdx
	movq	%rdx, 8(%rdi)
	movzbl	(%rax), %eax
.L7:
	xorl	%r12d, %r12d
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L8:
	leaq	1(%rdx), %rax
	movq	%rax, 8(%rdi)
	movzbl	(%rdx), %eax
	cmpl	$47, %eax
	jle	.L5
.L9:
	movq	8(%rdi), %rdx
	movq	16(%rdi), %rcx
.L11:
	leal	(%r12,%r12,4), %esi
	andl	$15, %eax
	leal	(%rax,%rsi,2), %r12d
	cmpq	%rcx, %rdx
	jb	.L8
	call	__uflow@PLT
	cmpl	$47, %eax
	jle	.L5
	movq	stdin(%rip), %rdi
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L5:
	movl	%r12d, %eax
	popq	%r12
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L14:
	.cfi_restore_state
	call	__uflow@PLT
	movq	stdin(%rip), %rdi
	movq	8(%rdi), %rdx
	movq	16(%rdi), %rcx
	jmp	.L7
	.cfi_endproc
.LFE51:
	.size	in, .-in
	.p2align 4
	.globl	vsub
	.type	vsub, @function
vsub:
.LFB52:
	.cfi_startproc
	endbr64
	movq	%rdi, %xmm0
	movq	%rsi, %xmm1
	psubd	%xmm1, %xmm0
	movq	%xmm0, %rax
	ret
	.cfi_endproc
.LFE52:
	.size	vsub, .-vsub
	.p2align 4
	.globl	vabs
	.type	vabs, @function
vabs:
.LFB53:
	.cfi_startproc
	endbr64
	movq	%rdi, %rax
	pxor	%xmm0, %xmm0
	pxor	%xmm1, %xmm1
	sarq	$32, %rax
	cvtsi2sdl	%edi, %xmm0
	cvtsi2sdl	%eax, %xmm1
	jmp	hypot@PLT
	.cfi_endproc
.LFE53:
	.size	vabs, .-vabs
	.p2align 4
	.globl	cross
	.type	cross, @function
cross:
.LFB54:
	.cfi_startproc
	endbr64
	pxor	%xmm0, %xmm0
	pxor	%xmm1, %xmm1
	pxor	%xmm2, %xmm2
	movq	%rsi, %rax
	sarq	$32, %rax
	cvtsi2sdl	%edi, %xmm0
	sarq	$32, %rdi
	cvtsi2sdl	%eax, %xmm1
	cvtsi2sdl	%esi, %xmm2
	mulsd	%xmm1, %xmm0
	pxor	%xmm1, %xmm1
	cvtsi2sdl	%edi, %xmm1
	mulsd	%xmm2, %xmm1
	subsd	%xmm1, %xmm0
	ret
	.cfi_endproc
.LFE54:
	.size	cross, .-cross
	.p2align 4
	.globl	polygon_area
	.type	polygon_area, @function
polygon_area:
.LFB55:
	.cfi_startproc
	endbr64
	pxor	%xmm0, %xmm0
	cmpl	$2, %edi
	jle	.L18
	movq	(%rsi), %rdx
	movslq	%edi, %rax
	subl	$1, %edi
	leaq	16(%rsi,%rdi,8), %r8
	movq	%rdx, (%rsi,%rax,8)
	movl	4(%rsi), %ecx
	leaq	8(%rsi), %rax
	movl	(%rsi), %edx
	.p2align 4,,10
	.p2align 3
.L20:
	movl	%ecx, %esi
	movl	4(%rax), %ecx
	movl	%edx, %edi
	pxor	%xmm1, %xmm1
	pxor	%xmm2, %xmm2
	cvtsi2sdl	%edi, %xmm1
	movl	(%rax), %edx
	pxor	%xmm3, %xmm3
	cvtsi2sdl	%ecx, %xmm2
	addq	$8, %rax
	cvtsi2sdl	%edx, %xmm3
	mulsd	%xmm2, %xmm1
	pxor	%xmm2, %xmm2
	cvtsi2sdl	%esi, %xmm2
	mulsd	%xmm3, %xmm2
	subsd	%xmm2, %xmm1
	addsd	%xmm1, %xmm0
	cmpq	%rax, %r8
	jne	.L20
	andpd	.LC1(%rip), %xmm0
	mulsd	.LC2(%rip), %xmm0
.L18:
	ret
	.cfi_endproc
.LFE55:
	.size	polygon_area, .-polygon_area
	.p2align 4
	.globl	convex_hull
	.type	convex_hull, @function
convex_hull:
.LFB57:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	movslq	%edi, %rax
	leaq	cmp(%rip), %rcx
	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
	movq	%rsi, %r12
	movq	%rax, %rsi
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	movq	%r12, %rdi
	movq	%rax, %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	movq	%rdx, %rbx
	movl	$8, %edx
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	movq	%rax, (%rsp)
	call	qsort@PLT
	testl	%ebp, %ebp
	jle	.L37
	movq	(%r12), %rax
	movq	%rax, (%rbx)
	cmpl	$1, %ebp
	je	.L38
	leal	-2(%rbp), %eax
	leaq	8(%r12), %r14
	pxor	%xmm3, %xmm3
	movl	%eax, 12(%rsp)
	leaq	16(%r12,%rax,8), %r15
	movl	$1, %eax
	.p2align 4,,10
	.p2align 3
.L25:
	movq	(%r14), %rcx
	addq	$8, %r14
	leal	1(%rax), %edx
	movq	%rcx, (%rbx,%rax,8)
	cmpq	%r14, %r15
	je	.L28
	movslq	%edx, %rax
	movl	(%r14), %r10d
	movl	4(%r14), %r9d
	leaq	(%rbx,%rax,8), %rax
	movl	-4(%rax), %esi
	movl	-8(%rax), %ecx
	jmp	.L29
	.p2align 4,,10
	.p2align 3
.L27:
	subl	$1, %edx
	subq	$8, %rax
	cmpl	$1, %edx
	je	.L26
.L29:
	movl	%r10d, %r8d
	movl	%ecx, %r11d
	movl	%r9d, %r13d
	movl	%esi, %edi
	subl	%ecx, %r8d
	movl	-16(%rax), %ecx
	subl	%esi, %r13d
	pxor	%xmm0, %xmm0
	pxor	%xmm1, %xmm1
	movl	-12(%rax), %esi
	pxor	%xmm2, %xmm2
	subl	%ecx, %r11d
	cvtsi2sdl	%r13d, %xmm1
	cvtsi2sdl	%r11d, %xmm0
	subl	%esi, %edi
	cvtsi2sdl	%r8d, %xmm2
	mulsd	%xmm1, %xmm0
	pxor	%xmm1, %xmm1
	cvtsi2sdl	%edi, %xmm1
	mulsd	%xmm2, %xmm1
	subsd	%xmm1, %xmm0
	comisd	%xmm0, %xmm3
	jnb	.L27
.L26:
	movslq	%edx, %rax
	jmp	.L25
	.p2align 4,,10
	.p2align 3
.L28:
	movl	12(%rsp), %eax
.L36:
	movslq	%eax, %rsi
	movslq	%edx, %rcx
	leal	1(%rdx), %edi
	movq	(%r12,%rsi,8), %rsi
	movq	%rsi, (%rbx,%rcx,8)
	testl	%eax, %eax
	je	.L39
	movq	(%rsp), %rax
	pxor	%xmm3, %xmm3
	salq	$3, %rax
	leaq	(%r12,%rax), %r13
	leaq	-8(%r12,%rax), %r12
	leal	-3(%rbp), %eax
	salq	$3, %rax
	subq	%rax, %r12
	.p2align 4,,10
	.p2align 3
.L32:
	cmpl	%edx, %edi
	jle	.L41
	movslq	%edi, %rax
	movl	-24(%r13), %ebp
	movl	-20(%r13), %r11d
	movl	%edi, %r9d
	leaq	(%rbx,%rax,8), %rax
	movl	-4(%rax), %esi
	movl	-8(%rax), %ecx
	jmp	.L35
	.p2align 4,,10
	.p2align 3
.L34:
	subl	$1, %r9d
	subq	$8, %rax
	cmpl	%edx, %r9d
	je	.L33
.L35:
	movl	%ebp, %r10d
	movl	%ecx, %r8d
	movl	%r11d, %r14d
	movl	%esi, %edi
	subl	%ecx, %r10d
	movl	-16(%rax), %ecx
	subl	%esi, %r14d
	pxor	%xmm0, %xmm0
	pxor	%xmm1, %xmm1
	movl	-12(%rax), %esi
	pxor	%xmm2, %xmm2
	subl	%ecx, %r8d
	cvtsi2sdl	%r14d, %xmm1
	cvtsi2sdl	%r8d, %xmm0
	subl	%esi, %edi
	cvtsi2sdl	%r10d, %xmm2
	mulsd	%xmm1, %xmm0
	pxor	%xmm1, %xmm1
	cvtsi2sdl	%edi, %xmm1
	mulsd	%xmm2, %xmm1
	subsd	%xmm1, %xmm0
	comisd	%xmm0, %xmm3
	jnb	.L34
.L33:
	movq	-24(%r13), %rcx
	movslq	%r9d, %rax
	subq	$8, %r13
	leal	1(%r9), %edi
	movq	%rcx, (%rbx,%rax,8)
	cmpq	%r13, %r12
	jne	.L32
.L23:
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	movl	%r9d, %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
.L37:
	.cfi_restore_state
	movl	$-1, %r9d
	xorl	%edx, %edx
.L24:
	movl	%ebp, %eax
	subl	$2, %eax
	js	.L23
	jmp	.L36
.L38:
	movl	$1, %edx
	xorl	%r9d, %r9d
	jmp	.L24
.L39:
	movl	%edx, %r9d
	jmp	.L23
.L41:
	movl	%edi, %r9d
	jmp	.L33
	.cfi_endproc
.LFE57:
	.size	convex_hull, .-convex_hull
	.p2align 4
	.globl	reverse
	.type	reverse, @function
reverse:
.LFB58:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	movslq	%edi, %rax
	movl	$16032, %ecx
	leaq	pp(%rip), %rdi
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	leaq	0(,%rax,8), %rbp
	movq	%rax, %r12
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	movq	%rbp, %rdx
	movq	%rsi, %rbx
	call	__memcpy_chk@PLT
	testl	%r12d, %r12d
	je	.L47
	leal	-1(%r12), %edx
	leaq	0(%rbp,%rax), %rax
	movq	%rbx, %rsi
	leaq	8(%rbx,%rdx,8), %rcx
	.p2align 4,,10
	.p2align 3
.L49:
	movq	-8(%rax), %rdx
	addq	$8, %rsi
	subq	$8, %rax
	movq	%rdx, -8(%rsi)
	cmpq	%rcx, %rsi
	jne	.L49
.L47:
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE58:
	.size	reverse, .-reverse
	.p2align 4
	.globl	check
	.type	check, @function
check:
.LFB59:
	.cfi_startproc
	endbr64
	testl	%edi, %edi
	jle	.L71
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	xorl	%r8d, %r8d
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	movq	%rsi, %r14
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	leaq	pp(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	movl	$1, %r12d
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	movl	$1, %ebp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	movslq	%edi, %rbx
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	movq	(%rsi), %rax
	movl	$1, %esi
	movq	$0x000000000, 8(%rsp)
	movq	%rax, pp(%rip)
	cmpq	%rbp, %rbx
	je	.L72
	.p2align 4,,10
	.p2align 3
.L61:
	movslq	%r8d, %rax
	movq	(%r14,%rbp,8), %rcx
	leal	1(%rsi), %edi
	imulq	$1002, %rax, %rdx
	addq	%rsi, %rdx
	movq	%rcx, 0(%r13,%rdx,8)
	cmpl	$1, %ebp
	jle	.L64
	movslq	%r12d, %r15
	imulq	$8016, %rax, %rsi
	imulq	$8016, %r15, %r15
	addq	%r13, %rsi
	addq	%r13, %r15
	movq	%r15, %rdx
	call	convex_hull
	movslq	%eax, %rsi
	cmpl	$2, %esi
	jle	.L65
	movq	(%r15), %rdx
	movslq	%esi, %rax
	leal	-1(%rsi), %edi
	pxor	%xmm2, %xmm2
	leaq	16(%r15,%rdi,8), %r9
	movq	%rdx, (%r15,%rax,8)
	movl	4(%r15), %ecx
	leaq	8(%r15), %rax
	movl	(%r15), %edx
	.p2align 4,,10
	.p2align 3
.L60:
	movl	%ecx, %edi
	movl	4(%rax), %ecx
	movl	%edx, %r8d
	pxor	%xmm0, %xmm0
	pxor	%xmm1, %xmm1
	cvtsi2sdl	%r8d, %xmm0
	movl	(%rax), %edx
	pxor	%xmm3, %xmm3
	cvtsi2sdl	%ecx, %xmm1
	addq	$8, %rax
	cvtsi2sdl	%edx, %xmm3
	mulsd	%xmm1, %xmm0
	pxor	%xmm1, %xmm1
	cvtsi2sdl	%edi, %xmm1
	mulsd	%xmm3, %xmm1
	subsd	%xmm1, %xmm0
	addsd	%xmm0, %xmm2
	cmpq	%rax, %r9
	jne	.L60
	movq	.LC1(%rip), %xmm1
	andpd	%xmm1, %xmm2
	mulsd	.LC2(%rip), %xmm2
.L59:
	movapd	%xmm2, %xmm0
	subsd	8(%rsp), %xmm0
	movsd	.LC3(%rip), %xmm5
	andpd	%xmm1, %xmm0
	comisd	%xmm0, %xmm5
	ja	.L66
	movl	%r12d, %r8d
	movsd	%xmm2, 8(%rsp)
	xorl	$1, %r12d
.L58:
	addq	$1, %rbp
	cmpq	%rbp, %rbx
	jne	.L61
.L72:
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	movl	$1, %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
	.p2align 4,,10
	.p2align 3
.L64:
	.cfi_restore_state
	movslq	%edi, %rsi
	jmp	.L58
	.p2align 4,,10
	.p2align 3
.L65:
	movq	.LC1(%rip), %xmm1
	pxor	%xmm2, %xmm2
	jmp	.L59
.L66:
	addq	$24, %rsp
	.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
.L71:
	.cfi_restore 3
	.cfi_restore 6
	.cfi_restore 12
	.cfi_restore 13
	.cfi_restore 14
	.cfi_restore 15
	movl	$1, %eax
	ret
	.cfi_endproc
.LFE59:
	.size	check, .-check
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC4:
	.string	"Possible"
.LC5:
	.string	"Impossible"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB60:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	xorl	%eax, %eax
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	leaq	snake(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	call	in
	movl	%eax, %ebp
	testl	%eax, %eax
	jle	.L90
	leal	-1(%rax), %eax
	leaq	8(%r12), %rdx
	movq	%r12, %r13
	leaq	(%rdx,%rax,8), %rbx
	.p2align 4,,10
	.p2align 3
.L89:
	movq	stdin(%rip), %rdi
	movq	8(%rdi), %rax
	movq	16(%rdi), %rcx
	cmpq	%rcx, %rax
	jnb	.L96
	leaq	1(%rax), %rdx
	movq	%rdx, 8(%rdi)
	movzbl	(%rax), %eax
.L78:
	xorl	%r14d, %r14d
	jmp	.L82
	.p2align 4,,10
	.p2align 3
.L79:
	leaq	1(%rdx), %rsi
	movq	%rsi, 8(%rdi)
	movzbl	(%rdx), %eax
	cmpl	$47, %eax
	jle	.L81
.L80:
	movq	%rsi, %rdx
.L82:
	leal	(%r14,%r14,4), %esi
	andl	$15, %eax
	leal	(%rax,%rsi,2), %r14d
	cmpq	%rcx, %rdx
	jb	.L79
	call	__uflow@PLT
	movq	stdin(%rip), %rdi
	movq	8(%rdi), %rsi
	movq	16(%rdi), %rcx
	cmpl	$47, %eax
	jg	.L80
	.p2align 4,,10
	.p2align 3
.L81:
	movl	%r14d, 0(%r13)
	cmpq	%rcx, %rsi
	jnb	.L97
	leaq	1(%rsi), %rdx
	movq	%rdx, 8(%rdi)
	movzbl	(%rsi), %eax
.L84:
	xorl	%r14d, %r14d
	jmp	.L88
	.p2align 4,,10
	.p2align 3
.L85:
	leaq	1(%rdx), %rax
	movq	%rax, 8(%rdi)
	movzbl	(%rdx), %eax
	cmpl	$47, %eax
	jle	.L87
.L86:
	movq	8(%rdi), %rdx
	movq	16(%rdi), %rcx
.L88:
	leal	(%r14,%r14,4), %esi
	andl	$15, %eax
	leal	(%rax,%rsi,2), %r14d
	cmpq	%rcx, %rdx
	jb	.L85
	call	__uflow@PLT
	cmpl	$47, %eax
	jle	.L87
	movq	stdin(%rip), %rdi
	jmp	.L86
	.p2align 4,,10
	.p2align 3
.L87:
	movl	%r14d, 4(%r13)
	addq	$8, %r13
	cmpq	%r13, %rbx
	jne	.L89
.L90:
	movq	%r12, %rsi
	movl	%ebp, %edi
	call	check
	testl	%eax, %eax
	jne	.L98
.L76:
	leaq	.LC5(%rip), %rdi
.L91:
	call	puts@PLT
	popq	%rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xorl	%eax, %eax
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L97:
	.cfi_restore_state
	call	__uflow@PLT
	movq	stdin(%rip), %rdi
	movq	8(%rdi), %rdx
	movq	16(%rdi), %rcx
	jmp	.L84
	.p2align 4,,10
	.p2align 3
.L96:
	call	__uflow@PLT
	movq	stdin(%rip), %rdi
	movq	8(%rdi), %rdx
	movq	16(%rdi), %rcx
	jmp	.L78
.L98:
	movq	%r12, %rsi
	movl	%ebp, %edi
	call	reverse
	movl	%ebp, %edi
	movq	%r12, %rsi
	call	check
	leaq	.LC4(%rip), %rdi
	testl	%eax, %eax
	jne	.L91
	jmp	.L76
	.cfi_endproc
.LFE60:
	.size	main, .-main
	.globl	pp
	.bss
	.align 32
	.type	pp, @object
	.size	pp, 16032
pp:
	.zero	16032
	.globl	snake
	.align 32
	.type	snake, @object
	.size	snake, 8016
snake:
	.zero	8016
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC1:
	.long	-1
	.long	2147483647
	.long	0
	.long	0
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC2:
	.long	0
	.long	1071644672
	.align 8
.LC3:
	.long	-500134854
	.long	1044740494
	.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:

// AOJ 2635 Snake
// 2018.3.19 bal4u

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>

// [library]

//#define getchar_unlocked()  getchar()
int in()	// get non-negative integer from stdin
{
	int n = 0, c = getchar_unlocked();
	do n = 10*n + (c & 0xf), c = getchar_unlocked(); while (c >= '0');
	return n;
}

typedef struct { int x, y; } PP;

#define INF		 1e8
#define EPS		 1e-8
#define EQ(a,b)  (fabs((a)-(b))<EPS)

PP vsub(PP p1, PP p2) { PP r; r.x = p1.x - p2.x, r.y = p1.y - p2.y; return r; }
double vabs(PP a) { return hypot(a.x, a.y); }
double cross(PP a, PP b) { return (double)a.x * b.y - (double)a.y * b.x; }

double polygon_area(int n, PP *p)
{
   int i;
   double s;

   if (n < 3) return 0;
   s = 0; p[n] = p[0];
   for (i = 0; i < n; i++) s += cross(p[i], p[i+1]);
   return fabs(s)/2;
}

int cmp(PP *a, PP *b) {
	if (a->y - b->y) return a->y - b->y;
	return a->x - b->x;
}

int convex_hull(int n, PP *ps, PP *po)
{
	int i, k, j = 0;

	qsort(ps, n, sizeof(PP), cmp);
	for (i = 0; i < n; i++) {
		while (j > 1 && cross(vsub(po[j-1], po[j-2]), vsub(ps[i], po[j-1])) <= 0) j--;
		po[j++] = ps[i];
	}
	k = j;
	for (i = n - 2; i >= 0; i--) {
		while (j > k && cross(vsub(po[j-1], po[j-2]), vsub(ps[i], po[j-1])) <= 0) j--;
		po[j++] = ps[i];
	}
	return j-1;
}
// [\library]  

PP  snake[1002];
PP  pp[2][1002];

void reverse(int n, PP *p)
{
	int i, j;
	memcpy(pp[0], p, sizeof(PP)*n);
	j = n, i = 0; while (j--) p[i++] = pp[0][j];
}

int check(int n, PP *p)
{
	int i, k, k1, k2;
	double prev, s;

	prev = 0, k = 0, k1 = 0, k2 = 1;
	for (i = 0; i < n; i++) {
		pp[k1][k++] = p[i];
		if (i < 2) continue;
		k = convex_hull(k, pp[k1], pp[k2]);
		s = polygon_area(k, pp[k2]);
		if (EQ(s, prev)) return 0;
		prev = s, k1 = k2, k2 = !k2;
	}
	return 1;
}

int main()
{
	int n, i, ans;

	n = in();
	for (i = 0; i < n; i++) snake[i].x = in(), snake[i].y = in();
	ans = 0;
	if (check(n, snake)) {
		reverse(n, snake);
		if (check(n, snake)) ans = 1;
	}
	puts(ans? "Possible": "Impossible");
	return 0;
}

4
0 1
1 1
1 2
3 2
 11
63 106
87 143
102 132
115 169
74 145
41 177
56 130
28 102
19 124
0 156
22 183
 4
0 2
1 1
1 2
3 2
 11
63 106
87 143
102 132
115 169
74 145
41 177
56 130
28 102
19 124
0 294
22 183
 4
0 2
1 1
2 2
3 2
 11
63 106
87 143
102 132
115 169
74 145
41 177
84 130
28 102
19 124
0 294
22 183
 11
63 106
87 143
102 132
115 44
74 145
41 177
84 130
28 102
19 124
0 294
22 183
 11
63 106
87 143
102 132
115 44
74 145
41 340
84 130
28 102
19 124
0 294
22 183
 11
63 106
87 143
102 132
115 44
74 145
11 340
84 130
28 102
19 124
0 294
22 183
 11
63 106
87 143
102 132
115 44
86 145
11 340
84 130
28 102
19 124
0 294
22 183

Possible
 Impossible
 Possible
 Impossible
 Possible
 Impossible
 Impossible
 Impossible
 Impossible
 Impossible

Given the following C code and unoptimized assembly code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
// AOJ 2635 Snake
// 2018.3.19 bal4u

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>

// [library]

//#define getchar_unlocked()  getchar()
int in()	// get non-negative integer from stdin
{
	int n = 0, c = getchar_unlocked();
	do n = 10*n + (c & 0xf), c = getchar_unlocked(); while (c >= '0');
	return n;
}

typedef struct { int x, y; } PP;

#define INF		 1e8
#define EPS		 1e-8
#define EQ(a,b)  (fabs((a)-(b))<EPS)

PP vsub(PP p1, PP p2) { PP r; r.x = p1.x - p2.x, r.y = p1.y - p2.y; return r; }
double vabs(PP a) { return hypot(a.x, a.y); }
double cross(PP a, PP b) { return (double)a.x * b.y - (double)a.y * b.x; }

double polygon_area(int n, PP *p)
{
   int i;
   double s;

   if (n < 3) return 0;
   s = 0; p[n] = p[0];
   for (i = 0; i < n; i++) s += cross(p[i], p[i+1]);
   return fabs(s)/2;
}

int cmp(PP *a, PP *b) {
	if (a->y - b->y) return a->y - b->y;
	return a->x - b->x;
}

int convex_hull(int n, PP *ps, PP *po)
{
	int i, k, j = 0;

	qsort(ps, n, sizeof(PP), cmp);
	for (i = 0; i < n; i++) {
		while (j > 1 && cross(vsub(po[j-1], po[j-2]), vsub(ps[i], po[j-1])) <= 0) j--;
		po[j++] = ps[i];
	}
	k = j;
	for (i = n - 2; i >= 0; i--) {
		while (j > k && cross(vsub(po[j-1], po[j-2]), vsub(ps[i], po[j-1])) <= 0) j--;
		po[j++] = ps[i];
	}
	return j-1;
}
// [\library]  

PP  snake[1002];
PP  pp[2][1002];

void reverse(int n, PP *p)
{
	int i, j;
	memcpy(pp[0], p, sizeof(PP)*n);
	j = n, i = 0; while (j--) p[i++] = pp[0][j];
}

int check(int n, PP *p)
{
	int i, k, k1, k2;
	double prev, s;

	prev = 0, k = 0, k1 = 0, k2 = 1;
	for (i = 0; i < n; i++) {
		pp[k1][k++] = p[i];
		if (i < 2) continue;
		k = convex_hull(k, pp[k1], pp[k2]);
		s = polygon_area(k, pp[k2]);
		if (EQ(s, prev)) return 0;
		prev = s, k1 = k2, k2 = !k2;
	}
	return 1;
}

int main()
{
	int n, i, ans;

	n = in();
	for (i = 0; i < n; i++) snake[i].x = in(), snake[i].y = in();
	ans = 0;
	if (check(n, snake)) {
		reverse(n, snake);
		if (check(n, snake)) ans = 1;
	}
	puts(ans? "Possible": "Impossible");
	return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	in
	.type	in, @function
in:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	movl	$0, -8(%rbp)
	call	getchar_unlocked@PLT
	movl	%eax, -4(%rbp)
.L2:
	movl	-8(%rbp), %edx
	movl	%edx, %eax
	sall	$2, %eax
	addl	%edx, %eax
	addl	%eax, %eax
	movl	%eax, %edx
	movl	-4(%rbp), %eax
	andl	$15, %eax
	addl	%edx, %eax
	movl	%eax, -8(%rbp)
	call	getchar_unlocked@PLT
	movl	%eax, -4(%rbp)
	cmpl	$47, -4(%rbp)
	jg	.L2
	movl	-8(%rbp), %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	in, .-in
	.globl	vsub
	.type	vsub, @function
vsub:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -24(%rbp)
	movq	%rsi, -32(%rbp)
	movl	-24(%rbp), %eax
	movl	-32(%rbp), %edx
	subl	%edx, %eax
	movl	%eax, -8(%rbp)
	movl	-20(%rbp), %eax
	movl	-28(%rbp), %edx
	subl	%edx, %eax
	movl	%eax, -4(%rbp)
	movq	-8(%rbp), %rax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	vsub, .-vsub
	.globl	vabs
	.type	vabs, @function
vabs:
.LFB8:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	movq	%rdi, -8(%rbp)
	movl	-4(%rbp), %eax
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%eax, %xmm0
	movl	-8(%rbp), %eax
	pxor	%xmm2, %xmm2
	cvtsi2sdl	%eax, %xmm2
	movq	%xmm2, %rax
	movapd	%xmm0, %xmm1
	movq	%rax, %xmm0
	call	hypot@PLT
	movq	%xmm0, %rax
	movq	%rax, %xmm0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	vabs, .-vabs
	.globl	cross
	.type	cross, @function
cross:
.LFB9:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -8(%rbp)
	movq	%rsi, -16(%rbp)
	movl	-8(%rbp), %eax
	pxor	%xmm1, %xmm1
	cvtsi2sdl	%eax, %xmm1
	movl	-12(%rbp), %eax
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%eax, %xmm0
	mulsd	%xmm1, %xmm0
	movl	-4(%rbp), %eax
	pxor	%xmm2, %xmm2
	cvtsi2sdl	%eax, %xmm2
	movl	-16(%rbp), %eax
	pxor	%xmm1, %xmm1
	cvtsi2sdl	%eax, %xmm1
	mulsd	%xmm2, %xmm1
	subsd	%xmm1, %xmm0
	movq	%xmm0, %rax
	movq	%rax, %xmm0
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	cross, .-cross
	.globl	polygon_area
	.type	polygon_area, @function
polygon_area:
.LFB10:
	.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
	movl	%edi, -20(%rbp)
	movq	%rsi, -32(%rbp)
	cmpl	$2, -20(%rbp)
	jg	.L11
	pxor	%xmm0, %xmm0
	jmp	.L12
.L11:
	pxor	%xmm0, %xmm0
	movsd	%xmm0, -8(%rbp)
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	addq	%rax, %rdx
	movq	-32(%rbp), %rax
	movq	(%rax), %rax
	movq	%rax, (%rdx)
	movl	$0, -12(%rbp)
	jmp	.L13
.L14:
	movl	-12(%rbp), %eax
	cltq
	addq	$1, %rax
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	addq	%rax, %rdx
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rcx
	movq	-32(%rbp), %rax
	addq	%rcx, %rax
	movq	(%rdx), %rsi
	movq	(%rax), %rdi
	call	cross
	movsd	-8(%rbp), %xmm1
	addsd	%xmm1, %xmm0
	movsd	%xmm0, -8(%rbp)
	addl	$1, -12(%rbp)
.L13:
	movl	-12(%rbp), %eax
	cmpl	-20(%rbp), %eax
	jl	.L14
	movsd	-8(%rbp), %xmm0
	movq	.LC1(%rip), %xmm1
	andpd	%xmm1, %xmm0
	movsd	.LC2(%rip), %xmm1
	divsd	%xmm1, %xmm0
.L12:
	movq	%xmm0, %rax
	movq	%rax, %xmm0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	polygon_area, .-polygon_area
	.globl	cmp
	.type	cmp, @function
cmp:
.LFB11:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -8(%rbp)
	movq	%rsi, -16(%rbp)
	movq	-8(%rbp), %rax
	movl	4(%rax), %edx
	movq	-16(%rbp), %rax
	movl	4(%rax), %eax
	cmpl	%eax, %edx
	je	.L16
	movq	-8(%rbp), %rax
	movl	4(%rax), %edx
	movq	-16(%rbp), %rax
	movl	4(%rax), %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	jmp	.L17
.L16:
	movq	-8(%rbp), %rax
	movl	(%rax), %edx
	movq	-16(%rbp), %rax
	movl	(%rax), %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
.L17:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	cmp, .-cmp
	.globl	convex_hull
	.type	convex_hull, @function
convex_hull:
.LFB12:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%rbx
	subq	$56, %rsp
	.cfi_offset 3, -24
	movl	%edi, -36(%rbp)
	movq	%rsi, -48(%rbp)
	movq	%rdx, -56(%rbp)
	movl	$0, -24(%rbp)
	movl	-36(%rbp), %eax
	movslq	%eax, %rsi
	movq	-48(%rbp), %rax
	leaq	cmp(%rip), %rdx
	movq	%rdx, %rcx
	movl	$8, %edx
	movq	%rax, %rdi
	call	qsort@PLT
	movl	$0, -28(%rbp)
	jmp	.L19
.L22:
	subl	$1, -24(%rbp)
.L20:
	cmpl	$1, -24(%rbp)
	jle	.L21
	movl	-24(%rbp), %eax
	cltq
	salq	$3, %rax
	leaq	-8(%rax), %rdx
	movq	-56(%rbp), %rax
	addq	%rax, %rdx
	movl	-28(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rcx
	movq	-48(%rbp), %rax
	addq	%rcx, %rax
	movq	(%rdx), %rsi
	movq	(%rax), %rdi
	call	vsub
	movq	%rax, %rbx
	movl	-24(%rbp), %eax
	cltq
	salq	$3, %rax
	leaq	-16(%rax), %rdx
	movq	-56(%rbp), %rax
	addq	%rax, %rdx
	movl	-24(%rbp), %eax
	cltq
	salq	$3, %rax
	leaq	-8(%rax), %rcx
	movq	-56(%rbp), %rax
	addq	%rcx, %rax
	movq	(%rdx), %rsi
	movq	(%rax), %rdi
	call	vsub
	movq	%rbx, %rsi
	movq	%rax, %rdi
	call	cross
	pxor	%xmm1, %xmm1
	comisd	%xmm0, %xmm1
	jnb	.L22
.L21:
	movl	-28(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-48(%rbp), %rax
	leaq	(%rdx,%rax), %rcx
	movl	-24(%rbp), %eax
	leal	1(%rax), %edx
	movl	%edx, -24(%rbp)
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-56(%rbp), %rax
	addq	%rax, %rdx
	movq	(%rcx), %rax
	movq	%rax, (%rdx)
	addl	$1, -28(%rbp)
.L19:
	movl	-28(%rbp), %eax
	cmpl	-36(%rbp), %eax
	jl	.L20
	movl	-24(%rbp), %eax
	movl	%eax, -20(%rbp)
	movl	-36(%rbp), %eax
	subl	$2, %eax
	movl	%eax, -28(%rbp)
	jmp	.L24
.L27:
	subl	$1, -24(%rbp)
.L25:
	movl	-24(%rbp), %eax
	cmpl	-20(%rbp), %eax
	jle	.L26
	movl	-24(%rbp), %eax
	cltq
	salq	$3, %rax
	leaq	-8(%rax), %rdx
	movq	-56(%rbp), %rax
	addq	%rax, %rdx
	movl	-28(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rcx
	movq	-48(%rbp), %rax
	addq	%rcx, %rax
	movq	(%rdx), %rsi
	movq	(%rax), %rdi
	call	vsub
	movq	%rax, %rbx
	movl	-24(%rbp), %eax
	cltq
	salq	$3, %rax
	leaq	-16(%rax), %rdx
	movq	-56(%rbp), %rax
	addq	%rax, %rdx
	movl	-24(%rbp), %eax
	cltq
	salq	$3, %rax
	leaq	-8(%rax), %rcx
	movq	-56(%rbp), %rax
	addq	%rcx, %rax
	movq	(%rdx), %rsi
	movq	(%rax), %rdi
	call	vsub
	movq	%rbx, %rsi
	movq	%rax, %rdi
	call	cross
	pxor	%xmm1, %xmm1
	comisd	%xmm0, %xmm1
	jnb	.L27
.L26:
	movl	-28(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-48(%rbp), %rax
	leaq	(%rdx,%rax), %rcx
	movl	-24(%rbp), %eax
	leal	1(%rax), %edx
	movl	%edx, -24(%rbp)
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-56(%rbp), %rax
	addq	%rax, %rdx
	movq	(%rcx), %rax
	movq	%rax, (%rdx)
	subl	$1, -28(%rbp)
.L24:
	cmpl	$0, -28(%rbp)
	jns	.L25
	movl	-24(%rbp), %eax
	subl	$1, %eax
	movq	-8(%rbp), %rbx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	convex_hull, .-convex_hull
	.globl	snake
	.bss
	.align 32
	.type	snake, @object
	.size	snake, 8016
snake:
	.zero	8016
	.globl	pp
	.align 32
	.type	pp, @object
	.size	pp, 16032
pp:
	.zero	16032
	.text
	.globl	reverse
	.type	reverse, @function
reverse:
.LFB13:
	.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
	movl	%edi, -20(%rbp)
	movq	%rsi, -32(%rbp)
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	movq	%rax, %rsi
	leaq	pp(%rip), %rax
	movq	%rax, %rdi
	call	memcpy@PLT
	movl	-20(%rbp), %eax
	movl	%eax, -4(%rbp)
	movl	$0, -8(%rbp)
	jmp	.L31
.L32:
	movl	-8(%rbp), %eax
	leal	1(%rax), %edx
	movl	%edx, -8(%rbp)
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	addq	%rax, %rdx
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rcx
	leaq	pp(%rip), %rax
	movq	(%rcx,%rax), %rax
	movq	%rax, (%rdx)
.L31:
	movl	-4(%rbp), %eax
	leal	-1(%rax), %edx
	movl	%edx, -4(%rbp)
	testl	%eax, %eax
	jne	.L32
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	reverse, .-reverse
	.globl	check
	.type	check, @function
check:
.LFB14:
	.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
	movl	%edi, -36(%rbp)
	movq	%rsi, -48(%rbp)
	pxor	%xmm0, %xmm0
	movsd	%xmm0, -16(%rbp)
	movl	$0, -28(%rbp)
	movl	$0, -24(%rbp)
	movl	$1, -20(%rbp)
	movl	$0, -32(%rbp)
	jmp	.L34
.L40:
	movl	-32(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-48(%rbp), %rax
	leaq	(%rdx,%rax), %rsi
	movl	-28(%rbp), %eax
	leal	1(%rax), %edx
	movl	%edx, -28(%rbp)
	movslq	%eax, %rdx
	movl	-24(%rbp), %eax
	cltq
	imulq	$1002, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,8), %rcx
	leaq	pp(%rip), %rdx
	movq	(%rsi), %rax
	movq	%rax, (%rcx,%rdx)
	cmpl	$1, -32(%rbp)
	jle	.L43
	movl	-20(%rbp), %eax
	cltq
	imulq	$8016, %rax, %rax
	leaq	pp(%rip), %rdx
	addq	%rax, %rdx
	movl	-24(%rbp), %eax
	cltq
	imulq	$8016, %rax, %rax
	leaq	pp(%rip), %rcx
	addq	%rax, %rcx
	movl	-28(%rbp), %eax
	movq	%rcx, %rsi
	movl	%eax, %edi
	call	convex_hull
	movl	%eax, -28(%rbp)
	movl	-20(%rbp), %eax
	cltq
	imulq	$8016, %rax, %rax
	leaq	pp(%rip), %rdx
	addq	%rax, %rdx
	movl	-28(%rbp), %eax
	movq	%rdx, %rsi
	movl	%eax, %edi
	call	polygon_area
	movq	%xmm0, %rax
	movq	%rax, -8(%rbp)
	movsd	-8(%rbp), %xmm0
	subsd	-16(%rbp), %xmm0
	movq	.LC1(%rip), %xmm1
	andpd	%xmm0, %xmm1
	movsd	.LC3(%rip), %xmm0
	comisd	%xmm1, %xmm0
	jbe	.L42
	movl	$0, %eax
	jmp	.L39
.L42:
	movsd	-8(%rbp), %xmm0
	movsd	%xmm0, -16(%rbp)
	movl	-20(%rbp), %eax
	movl	%eax, -24(%rbp)
	cmpl	$0, -20(%rbp)
	sete	%al
	movzbl	%al, %eax
	movl	%eax, -20(%rbp)
	jmp	.L36
.L43:
	nop
.L36:
	addl	$1, -32(%rbp)
.L34:
	movl	-32(%rbp), %eax
	cmpl	-36(%rbp), %eax
	jl	.L40
	movl	$1, %eax
.L39:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	check, .-check
	.section	.rodata
.LC4:
	.string	"Possible"
.LC5:
	.string	"Impossible"
	.text
	.globl	main
	.type	main, @function
main:
.LFB15:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	movl	$0, %eax
	call	in
	movl	%eax, -4(%rbp)
	movl	$0, -12(%rbp)
	jmp	.L45
.L46:
	movl	$0, %eax
	call	in
	movl	-12(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,8), %rcx
	leaq	snake(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	movl	$0, %eax
	call	in
	movl	-12(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,8), %rcx
	leaq	4+snake(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	addl	$1, -12(%rbp)
.L45:
	movl	-12(%rbp), %eax
	cmpl	-4(%rbp), %eax
	jl	.L46
	movl	$0, -8(%rbp)
	movl	-4(%rbp), %eax
	leaq	snake(%rip), %rdx
	movq	%rdx, %rsi
	movl	%eax, %edi
	call	check
	testl	%eax, %eax
	je	.L47
	movl	-4(%rbp), %eax
	leaq	snake(%rip), %rdx
	movq	%rdx, %rsi
	movl	%eax, %edi
	call	reverse
	movl	-4(%rbp), %eax
	leaq	snake(%rip), %rdx
	movq	%rdx, %rsi
	movl	%eax, %edi
	call	check
	testl	%eax, %eax
	je	.L47
	movl	$1, -8(%rbp)
.L47:
	cmpl	$0, -8(%rbp)
	je	.L48
	leaq	.LC4(%rip), %rax
	jmp	.L49
.L48:
	leaq	.LC5(%rip), %rax
.L49:
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.size	main, .-main
	.section	.rodata
	.align 16
.LC1:
	.long	-1
	.long	2147483647
	.long	0
	.long	0
	.align 8
.LC2:
	.long	0
	.long	1073741824
	.align 8
.LC3:
	.long	-500134854
	.long	1044740494
	.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
	.globl	in
	.type	in, @function
in:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	movl	$0, -8(%rbp)
	call	getchar_unlocked@PLT
	movl	%eax, -4(%rbp)
.L2:
	movl	-8(%rbp), %edx
	movl	%edx, %eax
	sall	$2, %eax
	addl	%edx, %eax
	addl	%eax, %eax
	movl	%eax, %edx
	movl	-4(%rbp), %eax
	andl	$15, %eax
	addl	%edx, %eax
	movl	%eax, -8(%rbp)
	call	getchar_unlocked@PLT
	movl	%eax, -4(%rbp)
	cmpl	$47, -4(%rbp)
	jg	.L2
	movl	-8(%rbp), %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	in, .-in
	.globl	vsub
	.type	vsub, @function
vsub:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -24(%rbp)
	movq	%rsi, -32(%rbp)
	movl	-24(%rbp), %eax
	movl	-32(%rbp), %edx
	subl	%edx, %eax
	movl	%eax, -8(%rbp)
	movl	-20(%rbp), %eax
	movl	-28(%rbp), %edx
	subl	%edx, %eax
	movl	%eax, -4(%rbp)
	movq	-8(%rbp), %rax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	vsub, .-vsub
	.globl	vabs
	.type	vabs, @function
vabs:
.LFB8:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	movq	%rdi, -8(%rbp)
	movl	-4(%rbp), %eax
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%eax, %xmm0
	movl	-8(%rbp), %eax
	pxor	%xmm2, %xmm2
	cvtsi2sdl	%eax, %xmm2
	movq	%xmm2, %rax
	movapd	%xmm0, %xmm1
	movq	%rax, %xmm0
	call	hypot@PLT
	movq	%xmm0, %rax
	movq	%rax, %xmm0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	vabs, .-vabs
	.globl	cross
	.type	cross, @function
cross:
.LFB9:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -8(%rbp)
	movq	%rsi, -16(%rbp)
	movl	-8(%rbp), %eax
	pxor	%xmm1, %xmm1
	cvtsi2sdl	%eax, %xmm1
	movl	-12(%rbp), %eax
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%eax, %xmm0
	mulsd	%xmm1, %xmm0
	movl	-4(%rbp), %eax
	pxor	%xmm2, %xmm2
	cvtsi2sdl	%eax, %xmm2
	movl	-16(%rbp), %eax
	pxor	%xmm1, %xmm1
	cvtsi2sdl	%eax, %xmm1
	mulsd	%xmm2, %xmm1
	subsd	%xmm1, %xmm0
	movq	%xmm0, %rax
	movq	%rax, %xmm0
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	cross, .-cross
	.globl	polygon_area
	.type	polygon_area, @function
polygon_area:
.LFB10:
	.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
	movl	%edi, -20(%rbp)
	movq	%rsi, -32(%rbp)
	cmpl	$2, -20(%rbp)
	jg	.L11
	pxor	%xmm0, %xmm0
	jmp	.L12
.L11:
	pxor	%xmm0, %xmm0
	movsd	%xmm0, -8(%rbp)
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	addq	%rax, %rdx
	movq	-32(%rbp), %rax
	movq	(%rax), %rax
	movq	%rax, (%rdx)
	movl	$0, -12(%rbp)
	jmp	.L13
.L14:
	movl	-12(%rbp), %eax
	cltq
	addq	$1, %rax
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	addq	%rax, %rdx
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rcx
	movq	-32(%rbp), %rax
	addq	%rcx, %rax
	movq	(%rdx), %rsi
	movq	(%rax), %rdi
	call	cross
	movsd	-8(%rbp), %xmm1
	addsd	%xmm1, %xmm0
	movsd	%xmm0, -8(%rbp)
	addl	$1, -12(%rbp)
.L13:
	movl	-12(%rbp), %eax
	cmpl	-20(%rbp), %eax
	jl	.L14
	movsd	-8(%rbp), %xmm0
	movq	.LC1(%rip), %xmm1
	andpd	%xmm1, %xmm0
	movsd	.LC2(%rip), %xmm1
	divsd	%xmm1, %xmm0
.L12:
	movq	%xmm0, %rax
	movq	%rax, %xmm0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	polygon_area, .-polygon_area
	.globl	cmp
	.type	cmp, @function
cmp:
.LFB11:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -8(%rbp)
	movq	%rsi, -16(%rbp)
	movq	-8(%rbp), %rax
	movl	4(%rax), %edx
	movq	-16(%rbp), %rax
	movl	4(%rax), %eax
	cmpl	%eax, %edx
	je	.L16
	movq	-8(%rbp), %rax
	movl	4(%rax), %edx
	movq	-16(%rbp), %rax
	movl	4(%rax), %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	jmp	.L17
.L16:
	movq	-8(%rbp), %rax
	movl	(%rax), %edx
	movq	-16(%rbp), %rax
	movl	(%rax), %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
.L17:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	cmp, .-cmp
	.globl	convex_hull
	.type	convex_hull, @function
convex_hull:
.LFB12:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%rbx
	subq	$56, %rsp
	.cfi_offset 3, -24
	movl	%edi, -36(%rbp)
	movq	%rsi, -48(%rbp)
	movq	%rdx, -56(%rbp)
	movl	$0, -24(%rbp)
	movl	-36(%rbp), %eax
	movslq	%eax, %rsi
	movq	-48(%rbp), %rax
	leaq	cmp(%rip), %rdx
	movq	%rdx, %rcx
	movl	$8, %edx
	movq	%rax, %rdi
	call	qsort@PLT
	movl	$0, -28(%rbp)
	jmp	.L19
.L22:
	subl	$1, -24(%rbp)
.L20:
	cmpl	$1, -24(%rbp)
	jle	.L21
	movl	-24(%rbp), %eax
	cltq
	salq	$3, %rax
	leaq	-8(%rax), %rdx
	movq	-56(%rbp), %rax
	addq	%rax, %rdx
	movl	-28(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rcx
	movq	-48(%rbp), %rax
	addq	%rcx, %rax
	movq	(%rdx), %rsi
	movq	(%rax), %rdi
	call	vsub
	movq	%rax, %rbx
	movl	-24(%rbp), %eax
	cltq
	salq	$3, %rax
	leaq	-16(%rax), %rdx
	movq	-56(%rbp), %rax
	addq	%rax, %rdx
	movl	-24(%rbp), %eax
	cltq
	salq	$3, %rax
	leaq	-8(%rax), %rcx
	movq	-56(%rbp), %rax
	addq	%rcx, %rax
	movq	(%rdx), %rsi
	movq	(%rax), %rdi
	call	vsub
	movq	%rbx, %rsi
	movq	%rax, %rdi
	call	cross
	pxor	%xmm1, %xmm1
	comisd	%xmm0, %xmm1
	jnb	.L22
.L21:
	movl	-28(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-48(%rbp), %rax
	leaq	(%rdx,%rax), %rcx
	movl	-24(%rbp), %eax
	leal	1(%rax), %edx
	movl	%edx, -24(%rbp)
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-56(%rbp), %rax
	addq	%rax, %rdx
	movq	(%rcx), %rax
	movq	%rax, (%rdx)
	addl	$1, -28(%rbp)
.L19:
	movl	-28(%rbp), %eax
	cmpl	-36(%rbp), %eax
	jl	.L20
	movl	-24(%rbp), %eax
	movl	%eax, -20(%rbp)
	movl	-36(%rbp), %eax
	subl	$2, %eax
	movl	%eax, -28(%rbp)
	jmp	.L24
.L27:
	subl	$1, -24(%rbp)
.L25:
	movl	-24(%rbp), %eax
	cmpl	-20(%rbp), %eax
	jle	.L26
	movl	-24(%rbp), %eax
	cltq
	salq	$3, %rax
	leaq	-8(%rax), %rdx
	movq	-56(%rbp), %rax
	addq	%rax, %rdx
	movl	-28(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rcx
	movq	-48(%rbp), %rax
	addq	%rcx, %rax
	movq	(%rdx), %rsi
	movq	(%rax), %rdi
	call	vsub
	movq	%rax, %rbx
	movl	-24(%rbp), %eax
	cltq
	salq	$3, %rax
	leaq	-16(%rax), %rdx
	movq	-56(%rbp), %rax
	addq	%rax, %rdx
	movl	-24(%rbp), %eax
	cltq
	salq	$3, %rax
	leaq	-8(%rax), %rcx
	movq	-56(%rbp), %rax
	addq	%rcx, %rax
	movq	(%rdx), %rsi
	movq	(%rax), %rdi
	call	vsub
	movq	%rbx, %rsi
	movq	%rax, %rdi
	call	cross
	pxor	%xmm1, %xmm1
	comisd	%xmm0, %xmm1
	jnb	.L27
.L26:
	movl	-28(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-48(%rbp), %rax
	leaq	(%rdx,%rax), %rcx
	movl	-24(%rbp), %eax
	leal	1(%rax), %edx
	movl	%edx, -24(%rbp)
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-56(%rbp), %rax
	addq	%rax, %rdx
	movq	(%rcx), %rax
	movq	%rax, (%rdx)
	subl	$1, -28(%rbp)
.L24:
	cmpl	$0, -28(%rbp)
	jns	.L25
	movl	-24(%rbp), %eax
	subl	$1, %eax
	movq	-8(%rbp), %rbx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	convex_hull, .-convex_hull
	.globl	snake
	.bss
	.align 32
	.type	snake, @object
	.size	snake, 8016
snake:
	.zero	8016
	.globl	pp
	.align 32
	.type	pp, @object
	.size	pp, 16032
pp:
	.zero	16032
	.text
	.globl	reverse
	.type	reverse, @function
reverse:
.LFB13:
	.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
	movl	%edi, -20(%rbp)
	movq	%rsi, -32(%rbp)
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	movq	%rax, %rsi
	leaq	pp(%rip), %rax
	movq	%rax, %rdi
	call	memcpy@PLT
	movl	-20(%rbp), %eax
	movl	%eax, -4(%rbp)
	movl	$0, -8(%rbp)
	jmp	.L31
.L32:
	movl	-8(%rbp), %eax
	leal	1(%rax), %edx
	movl	%edx, -8(%rbp)
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	addq	%rax, %rdx
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rcx
	leaq	pp(%rip), %rax
	movq	(%rcx,%rax), %rax
	movq	%rax, (%rdx)
.L31:
	movl	-4(%rbp), %eax
	leal	-1(%rax), %edx
	movl	%edx, -4(%rbp)
	testl	%eax, %eax
	jne	.L32
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	reverse, .-reverse
	.globl	check
	.type	check, @function
check:
.LFB14:
	.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
	movl	%edi, -36(%rbp)
	movq	%rsi, -48(%rbp)
	pxor	%xmm0, %xmm0
	movsd	%xmm0, -16(%rbp)
	movl	$0, -28(%rbp)
	movl	$0, -24(%rbp)
	movl	$1, -20(%rbp)
	movl	$0, -32(%rbp)
	jmp	.L34
.L40:
	movl	-32(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-48(%rbp), %rax
	leaq	(%rdx,%rax), %rsi
	movl	-28(%rbp), %eax
	leal	1(%rax), %edx
	movl	%edx, -28(%rbp)
	movslq	%eax, %rdx
	movl	-24(%rbp), %eax
	cltq
	imulq	$1002, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,8), %rcx
	leaq	pp(%rip), %rdx
	movq	(%rsi), %rax
	movq	%rax, (%rcx,%rdx)
	cmpl	$1, -32(%rbp)
	jle	.L43
	movl	-20(%rbp), %eax
	cltq
	imulq	$8016, %rax, %rax
	leaq	pp(%rip), %rdx
	addq	%rax, %rdx
	movl	-24(%rbp), %eax
	cltq
	imulq	$8016, %rax, %rax
	leaq	pp(%rip), %rcx
	addq	%rax, %rcx
	movl	-28(%rbp), %eax
	movq	%rcx, %rsi
	movl	%eax, %edi
	call	convex_hull
	movl	%eax, -28(%rbp)
	movl	-20(%rbp), %eax
	cltq
	imulq	$8016, %rax, %rax
	leaq	pp(%rip), %rdx
	addq	%rax, %rdx
	movl	-28(%rbp), %eax
	movq	%rdx, %rsi
	movl	%eax, %edi
	call	polygon_area
	movq	%xmm0, %rax
	movq	%rax, -8(%rbp)
	movsd	-8(%rbp), %xmm0
	subsd	-16(%rbp), %xmm0
	movq	.LC1(%rip), %xmm1
	andpd	%xmm0, %xmm1
	movsd	.LC3(%rip), %xmm0
	comisd	%xmm1, %xmm0
	jbe	.L42
	movl	$0, %eax
	jmp	.L39
.L42:
	movsd	-8(%rbp), %xmm0
	movsd	%xmm0, -16(%rbp)
	movl	-20(%rbp), %eax
	movl	%eax, -24(%rbp)
	cmpl	$0, -20(%rbp)
	sete	%al
	movzbl	%al, %eax
	movl	%eax, -20(%rbp)
	jmp	.L36
.L43:
	nop
.L36:
	addl	$1, -32(%rbp)
.L34:
	movl	-32(%rbp), %eax
	cmpl	-36(%rbp), %eax
	jl	.L40
	movl	$1, %eax
.L39:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	check, .-check
	.section	.rodata
.LC4:
	.string	"Possible"
.LC5:
	.string	"Impossible"
	.text
	.globl	main
	.type	main, @function
main:
.LFB15:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	movl	$0, %eax
	call	in
	movl	%eax, -4(%rbp)
	movl	$0, -12(%rbp)
	jmp	.L45
.L46:
	movl	$0, %eax
	call	in
	movl	-12(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,8), %rcx
	leaq	snake(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	movl	$0, %eax
	call	in
	movl	-12(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,8), %rcx
	leaq	4+snake(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	addl	$1, -12(%rbp)
.L45:
	movl	-12(%rbp), %eax
	cmpl	-4(%rbp), %eax
	jl	.L46
	movl	$0, -8(%rbp)
	movl	-4(%rbp), %eax
	leaq	snake(%rip), %rdx
	movq	%rdx, %rsi
	movl	%eax, %edi
	call	check
	testl	%eax, %eax
	je	.L47
	movl	-4(%rbp), %eax
	leaq	snake(%rip), %rdx
	movq	%rdx, %rsi
	movl	%eax, %edi
	call	reverse
	movl	-4(%rbp), %eax
	leaq	snake(%rip), %rdx
	movq	%rdx, %rsi
	movl	%eax, %edi
	call	check
	testl	%eax, %eax
	je	.L47
	movl	$1, -8(%rbp)
.L47:
	cmpl	$0, -8(%rbp)
	je	.L48
	leaq	.LC4(%rip), %rax
	jmp	.L49
.L48:
	leaq	.LC5(%rip), %rax
.L49:
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.size	main, .-main
	.section	.rodata
	.align 16
.LC1:
	.long	-1
	.long	2147483647
	.long	0
	.long	0
	.align 8
.LC2:
	.long	0
	.long	1073741824
	.align 8
.LC3:
	.long	-500134854
	.long	1044740494
	.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:
