#include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; #define REP(i, n) for(ll i = 0;i < n;i++) #define REPR(i, n) for(ll i = n;i >= 0;i--) #define FOR(i, m, n) for(ll i = m;i < n;i++) #define FORR(i, m, n) for(ll i = m;i >= n;i--) #define REPO(i, n) for(ll i = 1;i <= n;i++) #define ll unsigned long long #define INF (ll)1 << 60 #define MINF (2 * INF) #define ALL(n) n.begin(),n.end() #define MOD 1000000007 #define P pair bool check(P a, P b, P c) { vector

s; s.push_back(a); s.push_back(b); s.push_back(c); sort(ALL(s)); if (s[0].first == s[1].first and s[1].first == s[2].first)return true; if (s[0].first == s[1].first or s[1].first == s[2].first)return false; double ab = (double)(s[1].second - s[0].second) / (double)(s[1].first - s[0].first); double bc = (double)(s[2].second - s[1].second) / (double)(s[2].first - s[1].first); return ab == bc; } ll ans; int main() { ll n; cin >> n; vector

s(n); REP(i, n)cin >> s[i].first >> s[i].second; REP(i, n) { FOR(j, i + 1, n) { ll now = 2; REP(k, n) { if (i == k or j == k)continue; if (check(s[i], s[j], s[k]))now++; } ans = max(ans, now); } } cout << ans << endl; }