#include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #define all(a) a.begin(),a.end() #define rep(i, n) for (ll i = 0; i < (n); i++) #define pb push_back #pragma GCC optimize("O3") #pragma GCC optimize("unroll-loops") using namespace std; typedef long long ll; typedef unsigned long long ull; typedef long double ld; typedef pair P; typedef complex com; constexpr int inf = 1000000010; constexpr ll INF = 1000000000000000010; constexpr ld EPS = 1e-12; constexpr ld PI = 3.141592653589793238; template inline bool chmax(T &a, const U &b) { if (a < b) { a = b; return true; } return false; } template inline bool chmin(T &a, const U &b) { if (a > b) { a = b; return true; } return false; } signed main() { cin.tie(0); ios::sync_with_stdio(false); cout << fixed << setprecision(20); int n; cin >> n; vector x(n), y(n); rep(i, n) cin >> x[i] >> y[i]; int ans = 2; rep(i, n) { for (int j = i + 1; j < n; j++) { int dx = x[j] - x[i]; int dy = y[j] - y[i]; int cnt = 2; rep(k, n) { if (k == i || k == j) continue; if (dy*(x[k] - x[i]) == dx * (y[k] - y[i])) cnt++; } chmax(ans, cnt); } } cout << ans << '\n'; }