#include using namespace std; using ll=long long; int main(){ cin.tie(nullptr); ios::sync_with_stdio(false); ll A,B,C,D; cin>>A>>B>>C>>D; if(A>0&&B>0){ cout<0){ cout<