A,B = map(int, input().split()) B = B / 3600 / 1000 if A==B: print ('same') elif AB: print ('KoD')