#include #define rep(i,n) for(int i = 0; i < (n); i++) using namespace std; typedef long long ll; int main(){ cin.tie(0); ios::sync_with_stdio(0); int N; cin >> N; vector X(N), Y(N); rep(i,N) cin >> X[i] >> Y[i]; // yi = a xi + b // yj = a xj + b // a = (yi - yj) / (xi - xj) // b = (yi xj - yj xi) / (xj - xi) auto g = [&](int i, int j) { return array{Y[i] - Y[j], X[i] - X[j], Y[i] * X[j] - Y[j] * X[i], X[j] - X[i]}; }; auto f = [&](int i, int j, int k) { auto [a, b, c, d] = g(i, j); auto [x, y, z, w] = g(i, k); return a * y == x * b && c * w == z * d; }; int ans = 2; rep(i,N)rep(j,i) { int cnt = 2; rep(k,N) if(k != i && k != j) if(f(i, j, k)) cnt++; ans = max(ans, cnt); } cout << ans << endl; }