#include #define rep(i,n) for (int i=0; i<(n); ++i) using namespace std; using ll=long long; int main(){ int x,n,m; cin>>x>>n>>m; vectora(n),b(m); string ans="-1"; rep(i,n){ cin>>a[i]; if(a[i]==x){ ans="MrMax"; } } rep(i,m){ cin>>b[i]; if(b[i]==x){ if(ans=="-1"){ ans="MaxValu"; } else{ ans="MrMaxValu"; } } } cout<