#include using namespace std; #define REP(i, n) for(int i = 0; i < n; i++) #define FOR(i, m, n) for(int i = m; i < n; i++) int main() { ios::sync_with_stdio(false); cin.tie(0); int t; cin >> t; vector x(t); REP(i, t) cin >> x[i]; if (x[0] == 0) { cout << "F" << endl; return 0; } else { FOR(i, 1, t - 1) { if (abs(x[i] - x[i + 1]) != 1) { cout << "F" << endl; return 0; } } } cout << "T" << endl; return 0; }