#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) { assert (P != 0 || Q != 0); ll g = gcd(P, Q); p /= g; q /= g; if (q < 0){ p *= -1; q *= -1; } if (p == 0) q = 1; if (q == 0) p = 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; } }; int main(){ cin.tie(nullptr); ios_base::sync_with_stdio(false); ll N, ans=0; cin >> N; vector x(N), y(N); for (int i=0; i> x[i] >> y[i]; map, ll> mp; for (int i=0; i