#include using namespace std; 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 = 0; j < i; j++) { int dx = x[j] - x[i], dy = y[j] - y[i]; int cnt = 0; for (int k = 0; k < n; k++) { int ex = x[k] - x[i], ey = y[k] - y[i]; if (dx * ey == dy * ex) cnt++; } ans = max(ans, cnt); } } cout << ans << endl; return 0; }