#include using namespace std; using Int=long long; using Real=long double; templateinline bool chmin(T&A,S B){if(A>B){A=B;return true;}else{return false;}} templateinline bool chmax(T&A,S B){if(A>T; bool ans=true; int a;cin>>a; if(abs(a)^1)ans=false; REP(i,T-1) { int b;cin>>b; if(abs(a-b)^1)ans=false; a=b; } cout<<(ans?'T':'F')<<"\n"; } int main() { ios::sync_with_stdio(false); cin.tie(nullptr); cout.tie(nullptr); cout<>TE; while(TE--)sol(); }