X = gets.split[0].to_i M = gets.split.map(&:to_i) V = gets.split.map(&:to_i) M.include?(X) ? (V.include?(X) ? "MrMaxValu" : "MrMax") : "MaxValu"