nm1 = gets.chomp nm2 = nm1 == "yukiko" ? "oda" : "yukiko" num = $stdin.read.scan(/[bw]/).size puts num % 2 == 0 ? nm1 : nm2