N = int(input()) S = input() for i in range(N-2): if S[i:i+3] == "404": print("Found") exit() print("NotFound")