#include "bits/stdc++.h" using namespace std; #define DEBUG(x) cout<<#x<<": "< #define vl vector #define vii vector< vector > #define vll vector< vector > #define vs vector #define pii pair #define pis pair #define psi pair #define pll pair const int inf = 1000000001; const ll INF = 2e18 * 2; #define MOD 1000000007 #define mod 1000000009 #define pi 3.14159265358979323846 #define Sp(p) cout<> t; vi a(t); for (i = 0; i < t; i++) { cin >> a[i]; } for (i = 1; i < t; i++) { if (a[i] - a[i - 1] != 1 && a[i] - a[i - 1] != -1) { cout << "F" << endl; return 0; } } cout << "T" << endl; }