#include using namespace std; int main() { int N; cin >> N; vector> V(N); for (int i = 0, x, y; cin >> x >> y; i++) V.at(i) = {x, y}; int ans = 0; for (int i = 0; i < N; i++) { for (int j = 0; j < i; j++) { auto[x1, y1] = V.at(i); auto[x2, y2] = V.at(j); double tmp = (double) (y1 - y2) / (x1 - x2); int cnt = 2; for (int k = 0; k < N; k++) { if (k == i) continue; if (k == j) continue; auto[x3, y3] = V.at(k); if ((y1 - y3) / (double) (x1 - x3) == tmp) cnt++; } ans = max(ans, cnt); } } cout << ans << "\n"; }