N = int(input()) L = [tuple(map(int, input().split())) for _ in range(N)] res = 0 for i in range(N - 1): for j in range(i + 1, N): tmp = 2 dx = L[i][0] - L[j][0] dy = L[i][1] - L[j][1] for k in range(N): if k == i or k == j: continue dx_k = L[i][0] - L[k][0] dy_k = L[i][1] - L[k][1] if dx * dy_k == dy * dx_k: tmp += 1 res = max(tmp, res) print(res)