N = int(input()) xy = [tuple(map(int, input().split())) for i in range(N)] scores = [2] for i in range(N-2): x_1, y_1 = xy[i] for j in range(i+1, N-1): x_2, y_2 = xy[j] Y = y_2 - y_1 X = x_2 - x_1 #y - y_1 = Y / X * (x - x_1) score = 2 for k in range(j+1, N): #print(f'{xy[i]}, {xy[j]}, {xy[k]}') x_3, y_3 = xy[k] if (y_3 * X == Y * (x_3 - x_1) + y_1 * X): score += 1 scores.append(score) print(max(scores))