#define _USE_MATH_DEFINES #include #include #include #include #include #include #include #include #include #include using namespace std; typedef long long ll; typedef pair P; const ll MD = 1000000007; /* sample input */ int main() { char a, b; cin >> a >> b; if (b == 'T') { cout << "T" << " "; } else { cout << "F" << " "; } if (a == 'T') { cout << "T" ; } else { cout << "F" ; } return 0; }