n=int(input()) s=input() for i in range(n-2): if s[i]==s[i+2]=="4" and s[i+1]=="0": print("Found") exit() print("NotFound")