#include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; #define REP(i,n) for(int i=0; i=b; --i) #define ALL(c) (c).begin(), (c).end() typedef long long ll; typedef vector VI; typedef vector VL; typedef vector VVI; typedef vector VVL; typedef pair P; typedef pair PL; int main() { int t; cin >> t; int p = 0; REP(i,t){ int x; cin >> x; if (abs(x - p) != 1){ cout << "F" << endl; return 0; } p = x; } cout << "T" << endl; return 0; }