#include #include #include #include #include #include #include #include #include #include #include #include #define vll vector #define vvv vector #define vvi vector > #define vvl vector > #define vv(a, b, c, d) vector >(a, vector(b, c)) #define vvvl(a, b, c, d) vector(a, vvl(b, vll (c, d))); #define rep(c, a, b) for(ll c=a;c> x >> n >> m; bool a=false, b = false; re(i, n){ std::cin >> t; if(t==x) a = true; } re(i, m){ std::cin >> t; if(t==x) b = true; } if(a&&!b) std::cout << "MrMax" << '\n'; if(a&&b) std::cout << "MrMaxValu" << '\n'; if(!a&&b) std::cout << "MaxValu" << '\n'; if(!a&&!b) std::cout << "-1" << '\n'; }