#include #include using namespace std; int i,j,k,l,s,m,n,test,p,q,ans; int main() { scanf("%d",&test); while (test--) { scanf("%d%d%d%d",&n,&m,&p,&q); if (m*p