a,b=map(int,input().split()) h,w=map(int,input().split()) if a==b or h==w: print('Same') elif (a