Task: Program Execution
Input (English): 2943 W 9215 7335 h P v C 1057 U 5869 P 6261 2687 x A 2515 9833 m 6199 8907 3219 M I 8249 4177 y k j o 6243 R 499
Output (English): 2943, 23, 9215, 7335, 8, 16, 22, 3, 1057, 21, 5869, 16, 6261, 2687, 24, 1, 2515, 9833, 13, 6199, 8907, 3219, 13, 9, 8249, 4177, 25, 11, 10, 15, 6243, 18, 499