from collections import Counter n=int(input()) ps = [] for _ in range(n): a,b=map(int,input().split()) ps.append((a,b)) from itertools import combinations pset = set() for p1, p2 in combinations(ps,2): if p2[0] != p1[0]: katamuki = (p2[1] - p1[1])/(p2[0] - p1[0]) else: katamuki = 0 takasa = p1[1] - katamuki*p1[0] # print(katamuki, takasa) pset.add((katamuki, takasa)) cs = [] for katamuki, takasa in pset: c = 0 for p in ps: if p[1] == p[0]*katamuki + takasa: c += 1 cs.append(c) print(max(cs))