#include #define fastIO (cin.tie(0), cout.tie(0), ios::sync_with_stdio(false)) #define rep(i, n) for (int i = 0; i < (n); ++i) #define precise(i) fixed << setprecision(i) using namespace std; int main() { fastIO; int x, n, m; cin >> x >> n >> m; bool mrMax = false, maxValue = false; int value; rep(_, n) { cin >> value; if (x == value) mrMax = true; } rep(_, m) { cin >> value; if (x == value) maxValue = true; } if (mrMax && maxValue) { cout << "MrMaxValu\n"; } else if (mrMax) { cout << "MrMaX\n"; } else if (maxValue) { cout << "MaxValu\n"; } else { cout << "-1\n"; } return 0; }