# A B の値を文字列で受け取る a, b = gets(chomp: true).split a_m = a.to_i * 1000 b_m = b.to_i * 60 * 60 case a_m <=> b_m when 0 puts "same" when 1 puts "KoD" when -1 puts "blackyuki" end