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