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