n = int(input()) s = input().strip() found = False for i in range(len(s) - 2): if s[i] == '4' and s[i+1] == '0' and s[i+2] == '4': found = True break print("Found" if found else "NotFound")