def make_line(x0,y0,x1,y1): a = y1 - y0 b = -(x1 - x0) c = (x1-x0) * y0 - (y1-y0) * x0 return a, b, c N = int(input()) XY = [tuple(map(int, input().split())) for _ in range(N)] ans = 0 for i in range(N): for j in range(i+1,N): x0, y0 = XY[i] x1, y1 = XY[j] a,b,c = make_line(x0,y0,x1,y1) tmp = 0 for x, y in XY: if a * x + b * y + c == 0: tmp += 1 # print(a,b,c,tmp) ans = max(ans,tmp) print(ans)