import sys from collections import deque, Counter sys.setrecursionlimit(5 * 10 ** 5) from pypyjit import set_param set_param('max_unroll_recursion=-1') input = lambda: sys.stdin.readline().rstrip() ii = lambda: int(input()) mi = lambda: map(int, input().split()) li = lambda: list(mi()) inf = 2 ** 63 - 1 mod = 998244353 import itertools class Vector2: def __init__(self, x, y): self.x = x self.y = y def __str__(self): return str((self.x, self.y)) __repr__ = __str__ def __eq__(self, other): return (self.x == other.x and self.y == other.y) def __hash__(self): return hash((self.x, self.y)) def __add__(self, other): return Vector2(self.x + other.x, self.y + other.y) def __sub__(self, other): return Vector2(self.x - other.x, self.y - other.y) def __mul__(self, other): return self.x * other.y - self.y * other.x def normalize(self): assert(self.x != 0 or self.y != 0) norm = self.x ** 2 + self.y ** 2 self.x *= abs(self.x) / norm self.y *= abs(self.y) / norm return self def sgn(x: int) -> int: if(x > 0): return 1 if(x < 0): return -1 return 0 def same_inclination(v1: Vector2, v2: Vector2) -> bool: return (v1 * v2 == 0 and (v1.x * v2.x > 0 or v1.y * v2.y > 0)) n = ii() XY = [Vector2(*li()) for _ in range(n)] dp = [[[n] * n for _ in range(n)] for _ in range(1<> vfr)) or not(1 & (bit >> vnow)): continue cnext = cnow = dp[bit][vfr][vnow] v1 = vlis[vfr][vnow] for tox, toy in P: if (1 & (bit >> tox) and vnow != tox) or 1 & (bit >> toy) : continue bitto = bit | (1<