#include #include using namespace std; int main() { int x, n, m; cin >> x >> n >> m; vector a(n), b(m); bool f = true; for (int i=0; i> a; if (a == x) { if (f) { cout << "Mr"; f = false; } cout << "Max"; } } for (int i=0; i> b; if (b == x) { if (f) { cout << "Mr"; f = false; } cout << "Valu"; } } if (f) cout << "-1"; cout << endl; }