n = int(input()) li = [] for _ in range(n): li.append(list(map(int,input().split()))) max_cnt = 0 for i in range(n): for j in range(i+1,n): cnt = 0 if li[i][0]-li[j][0] == 0: for k,_ in li: if k == li[i][0]: cnt += 1 max_cnt = max(cnt, max_cnt) continue a = (li[i][1]-li[j][1])/(li[i][0]-li[j][0]) b = li[i][1] - a * li[i][0] for x,y in li: if abs(y - (a * x + b)) < 0.001: cnt += 1 max_cnt = max(cnt, max_cnt) print(max_cnt)