#include using namespace std; using Int=long long; using Real=long double; templateinline bool chmin(T&A,S B){if(A>B){A=B;return true;}else{return false;}} templateinline bool chmax(T&A,S B){if(A>X>>N>>M; REP(i,N)cin>>A[i]; REP(i,M)cin>>B[i]; int sk=count(A,A+N,X),mt=count(B,B+M,X); string ans; if(sk&&mt)ans="MrMaxValu"; else if(sk)ans="MrMax"; else if(mt)ans="MaxValu"; else ans="-1"; cout<>T; while(T--)sol(); }