N = int(input()) ns = [tuple(map(int, input().split())) for _ in range(N)] def is_linear(p1, p2, p3): return ((p1[0] - p3[0]) * (p1[1] - p2[1]) - (p1[0] - p2[0]) * (p1[1] - p3[1])) == 0 lines = [[ns[0], ns[1]]] for i, p in enumerate(ns[2:]): for line in lines: if is_linear(*line[:2], p): line.append(p) continue lines.extend([[old, p] for old in ns[:i]]) print(max(len(line) for line in lines))