#include using namespace std; typedef long long ll; int main(){ cin.tie(0); ios::sync_with_stdio(false); cout << fixed << setprecision(20); ll x,n,m; cin>>x>>n>>m; bool mr=0,mx=0; for(int i=0;i>a; if(a==x) mr=1; } for(int i=0;i>a; if(a==x) mx=1; } if(mr && mx){ cout << "MrMaxValu" << endl; } else if(mx){ cout << "MaxValu" << endl; } else if(mr) cout << "MrMax" << endl; else cout << -1 << endl; }