N,K=list(map(int,input().split())) if(N+K>N*K): print("S") elif(N+K