#include using namespace std; using ll=long long; int main(){ ios::sync_with_stdio(false); cin.tie(nullptr); int N; cin>>N; vector P(N); for(int i=0;i>P[i]; for(int i=0;iP[1]){ swap(P[0],P[1]); cout<<'S'; } cout<<'R'; rotate(P.begin(),P.begin()+1,P.end()); } } }