import strutils const s = ["MrMax", "MaxValu", "MrMaxValu", "-1"] let x = stdin.readLine.split.`[]` 0 a, b = stdin.readLine.split r1 = x.in a r2 = x.in b if r1 and r2: echo s[2] elif r1: echo s[0] elif r2: echo s[1] else: echo s[3]