#include using namespace std; const int maxn=400005; int T,m,len[4]; long long k; pairval[maxn*4]; bool cmp(paira,pairb){ return a.first*a.second