class A def initialize s = gets.chomp b = 0 8.times do b += gets.chomp.count('bw') end if b.even? puts (s == 'oda')? 'oda' : 'yukiko' else puts (s == 'oda')? 'yukiko' : 'oda' end end end A.new