N = int(input()) S = list(input()) for i in range(N - 2): if S[i:i + 3] == ['4', '0', '4']: print("Found") exit() print("NotFound")