t=int(input()) x=list() x.append(0) for i in range(t): x.append(int(input())) for i in range(t): if abs(x[i]-x[i+1]) != 1: print('F') break else: print('T')