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