#include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #define REP(i,n) for(i=0;i( \ ( std::ostringstream() << std::dec << x ) ).str() using namespace std; typedef long long unsigned int llu; typedef long long ll; int main (){ int T; while(cin >> T){ if(T==1){ cout << "T" << endl; continue; } int a,i; bool isCorrect = true; cin >> a;//最初の座標を取得 REP(i,T-1){ int na; cin >> na; if(abs(a-na) != 1){ isCorrect = false; } a = na; } if(isCorrect){ cout << "T" << endl; }else{ cout << "F" << endl; } } return 0; }