#include using namespace std; int main(void) { cin.tie(0); ios::sync_with_stdio(false); int x,n,m,t; bool ok1 = false; bool ok2 = false; cin >> x >> n >> m; for(int i=0;i> t; if(x==t) ok1 = true; } for(int i=0;i> t; if(x==t) ok2 = true; } if(!ok1 && !ok2) cout << -1 << '\n'; else if(ok1 && !ok2) cout << "MrMax" << '\n'; else if(!ok1 && ok2) cout << "MaxValu" << '\n'; else cout << "MrMaxValu" << '\n'; return 0; }