#include<bits/stdc++.h> using namespace std; int main() { int a; char b; cin>>a; while(a--) { while(cin>>b) { if(b=='S') cout<<"Rock\n"; if(b=='R') cout<<"Paper\n"; if(b=='P') cout<<"Scissors\n"; } } }