#include #include #include using namespace std; bool check(vector s){ int c1 = s.at(0).at(0) - '0'; int c2 = s.at(1).at(0) - '0'; int c3 = s.at(2).at(0) - '0'; // c_i は互いに異なる if(c2 > c1 && c2 > c3) return true; else if(c2 < c1 && c2 < c3) return true; return false; } int main() { std::cin.tie(0); std::ios::sync_with_stdio(false); int T; cin >> T; bool flag = true; int prev = 0; for(int i=0;i> x; if(abs(x - prev) != 1) flag = false; prev = x; } if(flag) cout << "T" << endl; else cout << "F" << endl; return 0; }