x,n,m = map(int,input().split()) a = list(map(int,input().split())) b = list(map(int,input().split())) a_che = False b_che = False if x in a: a_che = True if x in b: b_che = True if a_che and b_che: print('MrMaxValu') elif a_che: print('MrMax') else: print('MaxValu')