defmodule Main do def main do 1..3 |> Enum.map(fn _ -> IO.read(:line) |> String.trim() |> String.split() |> Enum.map(&String.to_integer/1) end) |> solve |> IO.puts() end def solve([[x | _], a, b]) do n = x in a v = x in b cond do n && v -> "MrMaxValu" n -> "MrMax" v -> "MaxValu" true -> -1 end end end