a,b=map(int,input().split()) s=a+b p=a*b print([["S","P"][s