#include using ll = long long int; using namespace std; ll mod=1e9+7; int main(){ int x,n,m; cin >> x >>n >>m; int a[n],b[m]; bool q,p; for(int i=0;i>a[i]; if(x==a[i])q=1;} for(int i=0;i>b[i]; if(x==b[i])p=1;} if(q==1 && p==1){cout << "MrMaxValu" << endl;}else if(q==1 && p==0){cout << "MrMax" << endl;}else if(q==0 && p==1){cout << "MaxValu" << endl;} }