#include #include #include using namespace std; int main() { int x, n, m; cin >> x >> n >> m; int a[n], b[m]; for (int i = 0; i < n; i++) cin >> a[i]; for (int i = 0; i < n; i++) cin >> b[i]; bool in_a = find(a, a + n, x) != (a + n); bool in_b = find(b, b + m, x) != (b + m); if (in_a && in_b) cout << "MrMaxValu"; else if (in_a) cout << "MrMax"; else if (in_b) cout << "MaxValu"; else cout << "-1"; cout << endl; return 0; }