#include #include #include #include #include using namespace std; int main(void) { bool a, b; char x, y; cin >> x >> y; if (x == 'T') a = true; else a = false; if (y == 'T') b = true; else b = false; if (a == true && b == true) cout << 'T' << " " << 'T' << endl; else if (a == true && b == false) cout << 'F' << " " << 'T' << endl; else if (a == false && b == true) cout << 'T' << " " << 'F' << endl; else if (a == false && b == false) cout << 'F' << " " << 'F' << endl; return 0; }