#include using namespace std; int main() { string s; cin >> s; if(s.find('T') != string::npos) cout << "T" << endl; else cout << endl; return 0; }