n = int(input()) info = [list(map(int, input().split())) for i in range(n)] ans = 0 for i in range(n): x1, y1 = info[i] for j in range(i + 1, n): x2, y2 = info[j] tmp = 0 for k in range(n): x, y = info[k] if (x2 - x1) * y == (y2 - y1) * x - x1 * y2 + x2 * y1: tmp += 1 ans = max(ans, tmp) print(ans)