#include #include int main(){ int i, T; int walk[100]; scanf("%d\n", &T); for(i = 0; i < T; i++){ scanf("%d\n", &walk[i]); if(i > 0){ if(abs(walk[i] - walk[i - 1]) != 1){ printf("F\n"); return 0; } }else{ if(abs(walk[i] - 0) != 1){ printf("F\n"); return 0; } } } printf("T\n"); return 0; }