#include using namespace std; int main(){ int a,b; cin>>a>>b; int c=0; if(a>=b){ a-=b; c++; } while(a>=2*b){ a-=2*b; c++; } if(c%2==1){ cout<<"S"<