n = int(input()) if n == 2: print(2) exit() P = [list(map(int, input().split())) for _ in range(n)] ans = 0 for i in range(n - 2): for j in range(i + 1, n - 1): cnt = 2 vx, vy = P[j][0] - P[i][0], P[j][1] - P[i][1] for k in range(j + 1, n): ux, uy = P[k][0] - P[i][0], P[k][1] - P[i][1] if vx * uy - vy * ux == 0: cnt += 1 ans = max(ans, cnt) print(ans)