Task: Program Execution
Input (English): 4867 m 8257 X 2199 L V 707 q b 1951 9197 B 6315 N 9121 6959 i 3555 2945 H 5289 4271 J 1961 33 Y S
Output (English): 4867, 13, 8257, 24, 2199, 12, 22, 707, 17, 2, 1951, 9197, 2, 6315, 14, 9121, 6959, 9, 3555, 2945, 8, 5289, 4271, 10, 1961, 33, 25, 19