a,b=map(int,input().split()) a*=1000 b*=3600 ans="same" if a>b:ans="KoD" if a