Task: Program Execution
Input (English): D 9791 335 V 5817 B 2221 H 9701 U U 4833 9211 y 9461 585 8545 M 9223 441 1923 7429 a 9215 5565 d S O B k 377 N
Output (English): 4, 9791, 335, 22, 5817, 2, 2221, 8, 9701, 21, 21, 4833, 9211, 25, 9461, 585, 8545, 13, 9223, 441, 1923, 7429, 1, 9215, 5565, 4, 19, 15, 2, 11, 377, 14