#include using namespace std; #define rep(i, n) for (int i = 0; i < (int)(n); i++) #define llong long long int gcd(int a, int b) { if(b == 0) return a; if(a % b == 0) return b; return gcd(b, a%b); } void putVal(int x, int y, int a1, int a2, map, set> &result) { tuple key = make_tuple(a1, x, y); if(result.find(key) == result.end()) { result[key] = set(); } result[key].insert(a2); } int main() { int n; cin >> n; vector> coords; rep(i, n) { int x, y; cin >> x >> y; coords.push_back(make_pair(x, y)); } //x, y, coord map, set> result; rep(i, n) { pair a1 = coords[i]; int a1f = a1.first; int a1s = a1.second; rep(j, n) { if(i == j) continue; pair a2 = coords[j]; int a2f = a2.first; int a2s = a2.second; if(a1f < a2f) { int x = a2f - a1f; int y = a2s - a1s; int gcdval = gcd(max(abs(x), abs(y)), min(abs(x), abs(y))); putVal(x / gcdval, y / gcdval, i, j, result); } else if(a1f == a2f) { putVal(0, 0, i, j, result); } else { int x = a1f - a2f; int y = a1s - a2s; int gcdval = gcd(max(abs(x), abs(y)), min(abs(x), abs(y))); putVal(x / gcdval, y / gcdval, i, j, result); } } } int maxval = 0; for(auto a: result) { maxval = max(maxval, (int)a.second.size() + 1); } cout << maxval << "\n"; }