A,B=gets.split.map(&:to_i) puts A*1000/3600B ? "KoD" : "same"