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