n = int(input()) A = [list(map(int, input().split())) for i in range(n)] ans = 0 for i in range(n): for j in range(i + 1, n): x1, y1 = A[i] x2, y2 = A[j] if x1 == x2: ans = max(ans, sum([1 for x, y in A if x == x1])) continue t = 0 for x, y in A: if abs((y2 - y1) / (x2 - x1) * (x - x1) + y1 - y) < 0.0001: t += 1 ans = max(ans, t) print(ans)