from math import gcd N = int(input()) XY = [list(map(int, input().split())) for i in range(N)] ans = 0 import scipy.stats for i in range(N): S = [] x, y = XY[i] for j in range(i): X, Y = XY[j] X -= x Y -= y g = gcd(X, Y) X //= g Y //= g if Y < 0: X, Y = -X, -Y if Y == 0: X = abs(X) S += [X * 200 + Y] if len(S) != 0: mode, count = scipy.stats.mode(S) else: count = [0] ans = max(ans, count[0] + 1) print(ans)