A=int(input()) B=int(input()) if A > B*1000: print("KoD") elif A/1000 < B: print("blackyuki") elif A/1000 == B: print("same")