Task: Program Execution
Input (English): 2331 n S W 9425 Z z o 9867 9297 3713 U r 6477 r 2767 2925 U 6605 c N 5359 z 5117 C 3429 X L P 7581 3405 7871
Output (English): 2331, 14, 19, 23, 9425, 26, 26, 15, 9867, 9297, 3713, 21, 18, 6477, 18, 2767, 2925, 21, 6605, 3, 14, 5359, 26, 5117, 3, 3429, 24, 12, 16, 7581, 3405, 7871