#include using namespace std; #ifdef LOCAL #include "debug.h" #else #define DEBUG(...) #endif int main() { cin.tie(nullptr); ios::sync_with_stdio(false); int n; cin >> n; vector x(n), y(n); for (int i = 0; i < n; ++i) { cin >> x[i] >> y[i]; } int res = 0; for (int t = 0; t < n; ++t) { for (int s = 0; s < t; ++s) { int cur = 0; for (int i = 0; i < n; ++i) { cur += (x[i] - x[s]) * (y[t] - y[s]) - (x[t] - x[s]) * (y[i] - y[s]) == 0; } res = max(res, cur); } } cout << res << '\n'; }