#include #include #define rep(i,n) for(int i = 0; i < n; i++) #define srep(i,a,b) for(int i = a; i < b; i++) #define all(A) (A).begin(),A.end() #define MOD 1000000007 using namespace std; using ll = long long; using P = pair; using Graph = vector>; int main(void){ int x,n,m; cin >> x >> n >> m; bool mis = 0,val = 0; rep(i,n){ int a; cin >> a; if(a == x) mis = 1; } rep(j,m){ int b; cin >> b; if(b == x) val = 1; } if(mis && val) cout << "MrMaxValu"; else if(mis) cout << "MrMax"; else cout << "MaxValu"; }