T = int(input()) X = [] ans = 1 X.append(int(input())) if(abs(0-X[0]) != 1): ans = 0 for i in range(1,T): X.append(int(input())) if(abs(X[i-1]-X[i]) != 1): ans = 0 if(ans == 1): print("T") else: print("F")