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