A,B=map(int,input().split()) A=A*1000/3600 if A==B: print("same") elif A