#include using namespace std; int main() { int x; int mr_length; int val_length; scanf("%d %d %d", &x, &mr_length, &val_length); int flag = 0b0; for (int i = 0; i < mr_length; i++) { int prod; scanf("%d", &prod); if (prod == x) { flag = 0b1; } } for (int i = 0; i < val_length; i++) { int prod; scanf("%d", &prod); if (prod == x) { flag = 0b10 | flag; } } if (flag == 0b11) { printf("MrMaxValu"); } else if (flag == 0b10) { printf("MaxValu"); } else if (flag == 0b01) { printf("MrMax"); } else { printf("-1"); } printf("\n"); }