X, N, M = map(int, input().split(' ')) A = list(map(int, input().split(' '))) B = list(map(int, input().split(' '))) W = '' for i in A: if i == X: W = 'MrMax' for k in B: if k == X: O = 'MaxValu' if W == 'MrMax' and O == 'MaxValu': print('MrMaxValu') elif W == 'MrMax' and O != 'MaxValu': print('MrMax') else: print('MaxValu')