#include using namespace std; template bool iscollinear(T xa, T ya, T xb, T yb, T xc, T yc) { if (xa == xb && ya == yb) return false; if (xa == xb) return xa == xc; if (ya == yb) return ya == yc; return xa*yb-xb*ya + xb*yc-xc*yb + xc*ya-xa*yc == 0; } 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 = 0; for (int i = 0; i < N; i++) { for (int j = i+1; j < N; j++) { int cnt = 2; for (int k = j+1; k < N; k++) { if (iscollinear(X[i], Y[i], X[j], Y[j], X[k], Y[k])) { cnt++; } } ans = max(ans, cnt); } } cout << ans << endl; }