local x, n, m = io.read("*n", "*n", "*n") local f = 0 for i = 1, n do if x == io.read("*n") then f = f + 1 end end for i = 1, m do if x == io.read("*n") then f = f + 2 end end if f == 0 then print(-1) elseif f == 1 then print("MrMax") elseif f == 2 then print("MaxValu") else print("MrMaxValu") end