#include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #define endl codeforces #define ALL(v) std::begin(v), std::end(v) #define ALLR(v) std::rbegin(v), std::rend(v) using ll = std::int64_t; using ull = std::uint64_t; using pii = std::pair; using tii = std::tuple; using pll = std::pair; using tll = std::tuple; template using vec = std::vector; template using vvec = vec>; template const T& var_min(const T &t) { return t; } template const T& var_max(const T &t) { return t; } template const T& var_min(const T &t, const Tail&... tail) { return std::min(t, var_min(tail...)); } template const T& var_max(const T &t, const Tail&... tail) { return std::max(t, var_max(tail...)); } template void chmin(T &t, const Tail&... tail) { t = var_min(t, tail...); } template void chmax(T &t, const Tail&... tail) { t = var_max(t, tail...); } template T make_v(T init) { return init; } template auto make_v(T init, std::size_t s, Tail... tail) { auto v = std::move(make_v(init, tail...)); return vec(s, v); } template struct multi_dem_array { using type = std::array::type, Head>; }; template struct multi_dem_array { using type = std::array; }; template using mdarray = typename multi_dem_array::type; namespace init__ { struct InitIO { InitIO() { std::cin.tie(nullptr); std::ios_base::sync_with_stdio(false); std::cout << std::fixed << std::setprecision(30); } } init_io; } int main() { ll n; std::cin >> n; vec xy(n); for (auto &&e : xy) { ll x, y; std::cin >> x >> y; e = pll(x, y); } ll ans = 1; for (ll i = 0; i < n; i++) { auto [ x1, y1 ] = xy[i]; for (ll j = i + 1; j < n; j++) { auto [ x2, y2 ] = xy[j]; ll cnt = 2; ll dx1 = x1 - x2; ll dy1 = y1 - y2; for (ll k = 0; k < n; k++) { if (k == i || k == j) continue; auto [ x3, y3 ] = xy[k]; if (x1 == x2) { if (x1 == x3) cnt++; continue; } ll dx2 = x1 - x3; ll dy2 = y1 - y3; cnt += (dx1 * dy2 == dx2 * dy1); } chmax(ans, cnt); } } std::cout << ans << "\n"; return 0; }