#include using namespace std; template T gcd(T a, T b){return b==0?a:gcd(b,a%b);} int N,X[1010],Y[1010]; int main() { ios::sync_with_stdio(false); cin.tie(nullptr); cin>>N; for(int i=0;i>X[i]>>Y[i]; map,int>mp; long ans=0; for(int i=0;i