Task: Program Execution
Input (English): O, O, 7663, 8491, 1345, N, N
Output (English): 17499