n = int(input()) XY = [list(map(int,input().split())) for i in range(n)] ans = 0 for i in range(n): for j in range(i): x1,y1 = XY[i] x2,y2 = XY[j] dx,dy = x1-x2,y1-y2 count = 0 for x,y in XY: dx2,dy2 = x-x2,y-y2 if dx*dy2 == dx2*dy: count += 1 ans = max(ans,count) print(ans)