#include using namespace std; int main() { int n; cin >> n; assert(2 <= n && n <= 100); vector x(n), y(n); set> check; for (int i = 0; i < n; i++) { cin >> x.at(i) >> y.at(i); assert(0 <= x.at(i) && x.at(i) <= 100); assert(0 <= y.at(i) && y.at(i) <= 100); assert(check.find(make_pair(x.at(i), y.at(i))) == check.end()); check.emplace(x.at(i), y.at(i)); } int ans = 0; for (int i = -100; i <= 100; i++) { for (int j = 0; j <= 99; j++) { if (i == 0 && j == 0) continue; map m; for (int k = 0; k < n; k++) { m[i * x.at(k) + j * y.at(k)]++; } for (auto s : m) { ans = max(ans, s.second); } } } cout << ans << endl; }