#include using namespace std; int main(){ int x,n,m; int ma=0,va=0; cin >> x >> n >> m; for(int i=0; i> a; if(x==a) ma=1; } for(int i=0; i> b; if(x==b) va=1; } if(ma==1 && va==1) cout << "MrMaxValu" << endl; else if(ma==1) cout << "MrMax" << endl; else if(va==1) cout << "MaxValu" << endl; else cout << -1 << endl; }