def input_int(): return int(input()) def input_ints(): return list(map(int, input().split())) N = input_int() P = [] for _ in range(N): x, y = input_ints() P.append((x, y)) def det(a, b, c, d): return a * d - b * c ans = 0 for i in range(N): for j in range(i + 1, N): cnt = 2 for k in range(j + 1, N): if det(P[j][0] - P[i][0], P[j][1] - P[i][1], P[k][0] - P[i][0], P[k][1] - P[i][1]) == 0: cnt += 1 ans = max(ans, cnt) print(ans)