using System; using System.Linq; using System.Collections.Generic; using System.Text; using System.Numerics; class MyClass { public static void Solve() { var input = Console.ReadLine().Split().Select(int.Parse).ToArray(); var X = input[0]; var N = input[1]; var M = input[2]; var A = Console.ReadLine().Split().Select(int.Parse).ToArray(); var B = Console.ReadLine().Split().Select(int.Parse).ToArray(); var a = A.Contains(X); var b = B.Contains(X); if (a && b) { Console.WriteLine("MrMaxValu"); } else if (a) { Console.WriteLine("MrMax"); } else if (b) { Console.WriteLine("MaxValu"); } else { Console.WriteLine(-1); } } public static void Main() { var sw = new System.IO.StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false }; Console.SetOut(sw); Solve(); Console.Out.Flush(); } }