from math import gcd from collections import defaultdict, Counter n = int(input()) XY = [] for i in range(n): x, y = map(int, input().split()) XY.append((x, y)) def line_calc(x1, y1, x2, y2): return -(y1 - y2), (x1 - x2), y1 * (x1 - x2) - x1 * (y1 - y2) def check_line(a, b, c, x, y): return a * x + b * y == c if n == 2: print(2) else: line = [] for i in range(n - 1): for j in range(i + 1, n): x1, y1 = XY[i] x2, y2 = XY[j] line.append(line_calc(x1, y1, x2, y2)) ans = 0 for pair in line: cnt = 0 a, b, c = pair for x, y in XY: if check_line(a, b, c, x, y): cnt += 1 ans = max(cnt, ans) print(ans)