x=0;f='T' for _ in [0]*int(input()): y=int(input()) if f=='F':continue if ~-x!=y and -~x!=y:f='F' x=y print(f)