Task: Program Execution
Input (English): A, W, 5497, 8409, 2263, 9455, S, 8873, 9191, W, 7579, W
Output (English): 5497, 8409, 2263, 9455, 8873, 9191, 7579