#include #include #include #include #include #include #include #include int main (void){ int n; std::cin >> n; int pos = 0; bool result = true; for (size_t i = 0; i < n; i++) { int next_pos; std::cin >> next_pos; if (next_pos + 1 == pos || next_pos - 1 == pos) { // None } else { result = false; } } std::cout << (result ? "T" : "F") << std::endl; return 0; }