#include using namespace std; int main(){ string A,B; cin>>A>>B; if(A=="1"||B=="1"){ cout<<'S'<