Task: Program Execution
Input (English): 3913 H 2277 T 7943 j 777 8295 B 5097 959 Z 5487 9475 1665 3465 G g X 9361 M s n 6201 Q 6001 a 4963 7933 9409 Z z h 31 K D
Output (English): 3913, 8, 2277, 20, 7943, 10, 777, 8295, 2, 5097, 959, 26, 5487, 9475, 1665, 3465, 7, 7, 24, 9361, 13, 19, 14, 6201, 17, 6001, 1, 4963, 7933, 9409, 26, 26, 8, 31, 11, 4