#include int main() { int a,b,c; int bb[100000], cc[100000]; int box1 = 0, box2 = 0; scanf("%d %d %d", &a,&b,&c); for(int i = 0; i < b; i++) { scanf("%d", &bb[i]); } for(int j = 0; j < c; j++) { scanf("%d", &cc[j]); } for(int ii = 0; ii < b; ii++) { if(bb[ii] == a) { box1 = 1; } else { box1 = -1; } } for(int jj = 0; jj < c; jj++) { if(cc[jj] == a) { box2 = 1; } else { box2 = -1; } } if(box1 == 1) { printf("MrMax\n"); } else if(box2 == 1) { printf("MaxValu\n"); } else if(box1 == -1 && box2 == -1) { printf("-1\n"); } return 0; }