use std::collections::HashSet; fn read_vec() -> Vec { let mut s = String::new(); std::io::stdin().read_line(&mut s).ok(); s.trim().split_whitespace() .map(|e| e.parse().ok().unwrap()).collect() } fn main(){ let mut a :Vec = read_vec(); let (x, n, m) = (a[0],a[1],a[2]); let mut mt_max: HashSet = read_vec().into_iter().collect(); let mut max_value: HashSet = read_vec().into_iter().collect(); if mt_max.contains(&x) && max_value.contains(&x) { println!("MrMaxValu"); } else if mt_max.contains(&x) { println!("MrMax"); } else if max_value.contains(&x){ println!("MaxValu"); }else{ println!("{}", -1); } }