#include #include #include #include #include #include #include #include #include #include #include #include using namespace std; using ll = long long; int main(){ int n; cin >> n; vector x(n), y(n); for(int i = 0; i < n; i++) { cin >> x[i] >> y[i]; } int ans = 0; for(int i = 0; i < n; i++) { for(int j = i + 1; j < n; j++){ double a = (double)(y[j] - y[i]) / (x[j] - x[i]); double b = y[i] - x[i] * a; int cnt = 1; for(int k = j; k < n; k++) { if(x[k] * a + b == y[k]){ cnt++; } } ans = max(ans, cnt); } } cout << ans << endl; return 0; }