from collections import Counter N = int(input()) l = [] ans = 0 for i in range(N): l.append(list(map(int, input().split()))) # print(l) for i in range(N-1): momx = l[i][0] momy = l[i][1] ckl = [] # print(i) for j in range(i + 1,N): # print(j) childx = l[j][0] childy = l[j][1] if childy - momy == 0: ckl.append("a") else: ckl.append((childx - momx) / (childy - momy)) # print(ckl) c = Counter(ckl).most_common(1) # print(c) if ans < c[0][1]: ans = c[0][1] print(ans + 1)