import collections, itertools F = lambda i,j : (j[1]-i[1])/(j[0]-i[0]) if j[0]-i[0] != 0 else None N = int(input()) P = [] for i in range(N): P.append(list(map(int, input().split(' ')))) lst = [] dic = {} for x, y in itertools.combinations(range(len(P)), r=2): a = F(P[x], P[y]) b = P[x][1] - a*P[x][1] if a != None else P[x][0] A = str(a) + '_' + str(b) lst.append(A) try: dic[A].append(x) dic[A].append(y) except: dic[A] = [x, y] c = collections.Counter(lst) print(len(set(dic[c.most_common(1)[0][0]])))