#include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include template inline bool chmin(T& a, T b) { if (a > b) { a = b; return true; } return false; } template inline bool chmax(T& a, T b) { if (a < b) { a = b; return true; } return false; } using namespace std; #define int long long #define ll long long #define rep(i, n) for (ll i = 0; i < (n); i++) #define FOR(i,a,b) for(ll i=(a);i<(b);i++) #define FORR(i,a,b)for(ll i=(a);i<=(b);i++) #define repr(i,n) for(ll i=n;i>=0;i--) #define P pair #define sz(x) (ll)x.size() #define ALL(x) (x).begin(),(x).end() #define ALLR(x) (x).rbegin(),(x).rend() #define VE vector #define COUT(x) cout<<(x)< #define SE set #define PQ priority_queue #define PQR priority_queue> #define COUT(x) cout<<(x)<> x >> n >> m; VE a(n), b(m); rep(i, n)cin >> a[i]; rep(i, m)cin >> b[i]; bool ok = false; bool ok2 = false; rep(i, n)if (a[i] == x)ok = true; rep(i, m)if (b[i] == x)ok2 = true; if (ok&&ok2)cout << "MrMaxValu" << endl; else if (ok)cout << "MrMax" << endl; else if (ok2)cout << "MaxValu" << endl; else cout << -1 << endl; return 0; }