#include using namespace std; 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 ans = 1; for (int i = 0; i < n; i++) { for (int j = i+1; j < n; j++) { int a = x[j] - x[i], b = y[j] - y[i], cnt = 0; if (a != 0 && b != 0) { int g = __gcd(abs(a), abs(b)); a /= g; b /= g; for (int k = 0; k < n; k++) { int dx = x[k] - x[i], dy = y[k] - y[i]; if (dx % a || dy % b) continue; if (dx / a == dy / b) cnt++; } } else { if (!a) { for (int k = 0; k < n; k++) { if (x[k] == x[i]) cnt++; } } else { for (int k = 0; k < n; k++) { if (y[k] == y[i]) cnt++; } } } ans = max(ans, cnt); } } cout << ans << "\n"; return 0; }