#include using namespace std; using ll = long long; constexpr char newl = '\n'; 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 = 0; j < i; j++) { int cnt = 0; for (int k = 0; k < n; k++) { cnt += ((y[k] - y[i]) * (x[i] - x[j]) == (y[i] - y[j]) * (x[k] - x[i])); } ans = max(ans, cnt); } } cout << ans << newl; return 0; }