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() specials = set() for p1, p2 in combinations(ps,2): if p2[0] != p1[0]: katamuki = (p2[1] - p1[1])/(p2[0] - p1[0]) takasa = p1[1] - katamuki*p1[0] pset.add((katamuki, takasa)) else: katamuki = None takasa = None specials.add(p1[0]) cs = [] for katamuki, takasa in pset: c = 0 for p in ps: if p[1] == p[0]*katamuki + takasa: c += 1 cs.append(c) for special in specials: c = 0 for p in ps: if p[0] == special: c += 1 cs.append(c) print(max(cs))