a,b=map(int,input().split()) x=a+b y=a*b if x>y: print('S') elif x