#include #include void main(void){ int n = 0; scanf("%d",&n); int positionList[n+1]; positionList[0] = 0; for(int i = 1 ; i <= n ; i++){ scanf("%d",&positionList[i]); } bool moveFlg = true; for(int i = 0 ; i < n ; i++){ if(positionList[i+1]-positionList[i] != 1 && positionList[i+1]-positionList[i] != -1 ){ moveFlg = false; break; } } if(moveFlg){ printf("T"); }else{ printf("F"); } }