Task: Program Execution
Input (English): 7431, 7805, 6485, 5703, 8331, N, 1789
Output (English): N