n = int(input()) X = [int(input()) for _ in range(n)] if n == 1: print("Y") else: for i in range(n-1): if abs(X[i] - X[i+1]) != 1: print("F") exit() print("Y")