n=int(input()) S=input() for i in range(n): if S[i:i+3]=='404': print('Found') exit() print('NotFound')