#include using namespace std; int main() { string s; while (getline(cin, s), s != "SS") { puts("T"); } }