Task: Program Execution
Input (English): 497, 9541, Z, 2787, 551, 8711, p, L, 8267, q, 9571, L, 5377, a, 1855, y, Z, 6131, 6935, N
Output (English): 497, 9541, 2787, 551, 8711, 8267, 9571, 5377, 1855, 6131, 6935