#include using namespace std; using ll = long long; //fraction (p/q) struct fraction{ ll p, q; fraction(ll P=0, ll Q=1) : p(P), q(Q) { ll g = gcd(P, Q); p /= g; q /= g; if (q < 0){ p *= -1; q *= -1; } if (q == 0) p = 1; if (p == 0) q = 1; } bool operator < (const fraction & other) const{ if (p < 0) return -p*other.q > -other.p*q; return p*other.q < other.p*q; } bool operator == (const fraction & other) const{ return p*other.q == other.p*q; } bool operator > (const fraction & other) const{ if (p < 0) return -p*other.q < -other.p*q; return p*other.q > other.p*q; } pair top() const{ return {p, q}; } }; int main(){ cin.tie(nullptr); ios_base::sync_with_stdio(false); ll N, ans=0, s, t, a, b, c, d; cin >> N; vector x(N), y(N); for (int i=0; i> x[i] >> y[i]; map, ll> mp; for (int i=0; i