n = int(input()) XY = [] for i in range(n): x, y = map(int, input().split()) XY.append((x, y)) ans = 0 for i in range(n-1): x1, y1 = XY[i] for j in range(i+1, n): x2, y2 = XY[j] temp = 2 if x1 != x2: for k in range(n): if k == i or k == j: continue x3, y3 = XY[k] if (y2-y1)*x3-(x2-x1)*y3-x1*y2+x2*y1 == 0: temp += 1 else: for k in range(n): if k == i or k == j: continue x3, y3 = XY[k] if x3 == x1: temp += 1 ans = max(ans, temp) print(ans)