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