#include using namespace std; int main() { int x, n, m; cin >> x >> n >> m; bool mr = false; bool max = false; for (int i = 0; i < n; i++) { int ai; cin >> ai; if (ai == x) { mr = true; } } for (int i = 0; i < m; i++) { int bi; cin >> bi; if (bi == x) { max = true; } } if (mr && max) { cout << "MrMaxValu" << endl; } else if (mr && !max) { cout << "MrMax" << endl; } else if (!mr && max) { cout << "MaxValu" << endl; } else { cout << -1 << endl; } }