#include using namespace std; int main(){ ios::sync_with_stdio(false); cin.tie(0); char a, b; cin >> a >> b; cout << (b == 'T' ? "T" : "F") << " " << (a == 'T' ? "T" : "F") << '\n'; return 0; }