import sys input = lambda: sys.stdin.readline().rstrip() ii = lambda: int(input()) mi = lambda: map(int, input().split()) li = lambda: list(mi()) INF = 1000000 mod = 998244353 n = ii() XY = [li() for _ in range(n)] if n <= 2: print(1) exit() lines = set() for i in range(n): x1, y1 = XY[i] for j in range(n): x2, y2 = XY[j] if x1 == x2: lines.add((x1, INF)) else: a = round((y2-y1) / (x2-x1) * 100) / 100 b = y1 - a * x1 lines.add((a, b)) S = set() for x1, y1 in lines: for x2, y2 in lines: if x1 == x2: continue if y1 == y2 == INF: continue if y1 == INF: S.add((x1, round((x2 * x1 + y2) * 100 ) / 100)) elif y2 == INF: S.add((x2, round((x1 * x2 + y1) * 100) / 100)) elif y1 < INF and y2 < INF: S.add((round((y2 - y1) / (x2 - x1) * 100) / 100, round((x1 * y2 - x2 * y1) / (x2 - x1) * 100) / 100)) S = list(S) m = len(S) eps = 10 ** (-5) mask = [[0] * m for _ in range(m)] for i in range(m): x1, y1 = S[i] for j in range(m): x2, y2 = S[j] mm = 0 if i == j: for k in range(n): x,y= XY[k] if abs(x - x1) <= eps: mm |= 1 << k elif x1 == x2: for k in range(n): x, y = XY[k] if abs(x - x1) <= eps: mm |= 1 << k else: a = (y2-y1)/(x2-x1) b = y2-a*x2 for k in range(n): x, y = XY[k] if abs(a*x+b - y) <= eps: mm |= 1<