#include using namespace std; int main() { ios::sync_with_stdio(false); cin.tie(0); int N; cin >> N; vector X(N), Y(N); for (int i = 0; i < N; i++) { cin >> X[i] >> Y[i]; } auto f = [](int a, int b, int c, int d, int x, int y) { if (a - c == 0) return false; return (b - d) % (a - c) == 0 && y == (b - d) / (a - c) * (x - a) + b; }; int res = 0; for (int i = 0; i < N; i++) { for (int j = i + 1; j < N; j++) { int cnt = 0; for (int k = 0; k < N; k++) { if (f(X[i], Y[i], X[j], Y[j], X[k], Y[k])) cnt++; } res = max(res, cnt); } } cout << res << '\n'; return 0; }