package main import ( "bufio" "fmt" "os" "strconv" "strings" ) func gets() string { stdin := bufio.NewScanner(os.Stdin) stdin.Scan() return stdin.Text() } func split(str string) []int { var list []string = strings.Split(str, " ") s := []int{} for _, x := range list { i, _ := strconv.Atoi(x) s = append(s, i) } return s } func contains(s []int, e int) bool { for _, v := range s { if v == e { return true } } return false } func main() { var list []int = split(gets()) var mrMaxList []int = split(gets()) var maxValuList []int = split(gets()) var wantedNum int = list[0] var isMrMax bool = contains(mrMaxList, wantedNum) var isMaxValu bool = contains(maxValuList, wantedNum) if isMrMax && isMaxValu { fmt.Println("MrMaxValu") } else if isMrMax { fmt.Println("MrMaxValu") } else if isMaxValu { fmt.Println("MrMaxValu") } else { fmt.Println("MrMaxValu") } }