#include #include using namespace std; int main() { mapm1; m1['T'] = true; m1['F'] = false; mapm2; m2[true] = 'T'; m2[false] = 'F'; char a, b; cin >> a >> b; cout << m2[!m1[b]] << m2[!m1[a]] << endl; }