#include #define all(vec) vec.begin(), vec.end() #define pb push_back #define eb emplace_back #define fi first #define se second using namespace std; using ll = long long; using P = pair; template using V = vector; constexpr ll INF = (1LL << 30) - 1LL; constexpr ll MOD = 1e9 + 7; constexpr int dx[4] = {0, 1, 0, -1}, dy[4] = {1, 0, -1, 0}; template void chmin(T &a, T b) { a = min(a, b); } template void chmax(T &a, T b) { a = max(a, b); } void debug() { cerr << "ok" << endl; } template void printv(const vector &v) { for (int i = 0; i < v.size(); i++) cout << v[i] << (i + 1 == v.size() ? '\n' : ' '); } template void readv(vector &v) { for (int i = 0; i < v.size(); i++) cin >> v[i]; } int main() { ios::sync_with_stdio(0); cin.tie(0); int n; cin >> n; V x(n), y(n); for (int i = 0; i < n; i++) { cin >> x[i] >> y[i]; } int res = 0; for (int i = 0; i < n; i++) { for (int j = i + 1; j < n; j++) { int co = 0; for (int k = 0; k < n; k++) { if ((y[k] - y[j]) * (x[j] - x[i]) == (y[j] - y[i]) * (x[k] - x[j])) { co++; } } chmax(res, co); } } cout << res << '\n'; }