T = input() ALL,ALL_DIF =[],[] for i in range(0,T): X = raw_input() ALL.append(int(X)) if ALL[0] != 0: for i in range(0,T-1): ALL_DIF.append(abs(abs(ALL[i+1])-abs(ALL[i]))) if abs(abs(ALL[i+1])-abs(ALL[i])) == 1: pass # finish if T-2 == i: print 'T' break else: print 'F' break else: print 'F'