n = int(input()) A = [list(map(int, input().split())) for i in range(n)] x, y = A[0] ans = 0 for x, y in A: for ax, ay in A: if (ax, ay) == (x, y): continue if ax - x == 0: ans = max(ans, sum([1 for xx, yy in A if xx == x])) continue a = (ay - y) / (ax - x) b = y - a * x ans = max( ans, sum([1 for xx, yy in A if a * xx == int(a * xx) and int(a * xx) + b == yy]), ) print(ans)