N = int(input()) XY = [list(map(int, input().split())) for _ in range(N)] ans = 0 for i in range(N): for j in range(i+1,N): cnt = 0 dx = XY[j][0] - XY[i][0] dy = XY[j][1] - XY[i][1] #print(dx,dy) for k in range(N): dx2 = XY[k][0] - XY[i][0] dy2 = XY[k][1] - XY[i][1] #print(dy*dx2,dx*dy2) if dy*dx2 == dx*dy2: cnt += 1 #print(cnt) ans = max(ans,cnt) print(ans)