from decimal import Decimal import sys import bisect # 二分 #import numpy as np # 色々 import queue import math from itertools import product # bit全 from collections import deque # deque MOD = int(1e9+7) INF = 1<<60 PI = math.pi #d=deque() deque Objects #q=queue.Queue() queue Objects #q=queue.LifoQueue() stack Objects #q=queue.PriorityQueue() Priority Objects A,B=map(int,input().split()) A*=1000 B=B*60*60 if A==B: print("same") elif A>B: print("KoD") else: print("blackyuki")