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