#include<bits/stdc++.h>

int main(){
    using namespace std;
    unsigned long N;
    cin >> N;
    vector<complex<long>> pts(N);
    for(auto&& i : pts){
        long x, y;
        cin >> x >> y;
        i = complex<long>{x, y};
    }
    unsigned long ans{0};
    for(const auto& i : pts)for(const auto& j : pts)if(i != j){
        unsigned long cnt{0};
        for(const auto& k : pts)if((j - i).real() * (k - i).imag() == (j - i).imag() * (k - i).real())++cnt;
        ans = max(ans, cnt);
    }
    cout << ans << endl;
    return 0;
}