N = int(input()) XY = [list(map(int, input().split())) for _ in range(N)] INF = 10**9 cnt = 0 for i in range(N): a, b = XY[i] K = set() for j in range(N): if i==j: continue c, d = XY[j] if c-a!=0: k = (d-b)/(c-a) K.add(k) else: K.add(INF) cnt = max(cnt, N-len(K)+1) print(cnt)