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