a,b=gets.split(" ").map{|e| e.to_i} a*=1000 b*=3600 puts (a>b)?"KoD":(a