#include using namespace std; typedef long long ll; #define inf 10e17 #define rep(i,n) for(long long i=0; i()) #define debug(x) std::cerr << (x) << std::endl; #define roll(x) for (auto&& itr : x) { cerr << (itr) << " "; } template inline void chmax(T &ans, T t) { if (t > ans) ans = t;} template inline void chmin(T &ans, T t) { if (t < ans) ans = t;} int main() { int x,n,m; cin >> x >> n >> m; vector a(n), b(m); string s = ""; bool b1 = false, b2 = false; rep(i, n) { cin >> a[i]; if (a[i] == x) { b1 = true; } } rep(i, m) { cin >> b[i]; if (b[i] == x) { b2 = true; } } if (b1 && b2) cout << "MrMaxValu\n"; else if (!b1 && b2) cout << "MaxValu\n"; else cout << "MrMax\n"; }