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