Task: Program Execution
Input (English): 7161 d 6513 803 U k m 3707 399 J w 2443 t A 1885 h h Z e 5425 n f 7653 6141 4705 6355 6211 E B X 6915 7097 U 7747 1161 Z 7517
Output (English): 7161, 4, 6513, 803, 21, 11, 13, 3707, 399, 10, 23, 2443, 20, 1, 1885, 8, 8, 26, 5, 5425, 14, 6, 7653, 6141, 4705, 6355, 6211, 5, 2, 24, 6915, 7097, 21, 7747, 1161, 26, 7517