#include using namespace std; #define REP(i,m,n) for(int i=(int)(m) ; i < (int) (n) ; ++i ) #define rep(i,n) REP(i,0,n) typedef long long ll; ll gcd(ll x,ll y){ if(x>a>>b>>c>>d; ll ret=abs(a*d-b*c); cout<