n = int(input()) def cross(a, b): return a.real * b.imag - b.real * a.imag XY = [] for _ in range(n): x, y = map(int, input().split()) XY.append((x, y)) ans = 0 for i in range(n - 1): a, b = XY[i] l1 = complex(a, b) for j in range(i + 1, n): c, d = XY[j] l2 = complex(c, d) line = l2 - l1 cnt = 0 for k in range(n): e, f = XY[k] l3 = complex(e, f) if cross(l2 - l1, l3 - l1) == 0: cnt += 1 ans = max(ans, cnt) if n == 2: ans = 2 print(ans)