#include #include #include #include #include #include #define pb push_back #define all(x) begin(x),end(x) #define ll long long #define P pair #define lP pait using namespace std; int main() { char a,b,c,d; cin>>a>>b; c='F';d='F'; if(a=='T') d='T'; else if(b=='T') c='T'; cout<