using System.Linq; using System; public class Hello { static void Main() { string[] line = Console.ReadLine().Trim().Split(' '); var x = int.Parse(line[0]); line = Console.ReadLine().Trim().Split(' '); var a = Array.ConvertAll(line, int.Parse); line = Console.ReadLine().Trim().Split(' '); var b = Array.ConvertAll(line, int.Parse); Console.WriteLine(getAns(x, a, b)); } static string getAns(int x, int[] a, int[] b) { var aa = a.Contains(x); var bb = b.Contains(x); if (aa && bb) return "MrMaxValu"; if (aa) return "MrMax"; if (bb) return "MaxValu"; return "-1"; } }