#include typedef long long ll; using namespace std; int INF = 1LL << 30; int MOD = 1e9+7; main(){ ll A,B; cin >> A >> B; if(A < B)cout << "T" << endl; else cout << "S" << endl; }