def main(): n = int(input()) points = [list(map(int, input().split())) for _ in range(n)] mx = 0 for i in range(n): for j in range(i + 1, n): x1, y1 = points[i] x2, y2 = points[j] cnt = 0 for k in range(j + 1, n): x, y = points[k] if (x - x2) * (y2 - y1) == (x2 - x1) * (y - y2): cnt += 1 mx = max(mx, cnt) ans = mx + 2 print(ans) if __name__ == "__main__": main()