Task: Program Execution
Input (English): 4021 Q M T V 3091 9815 i B 5711 6751 p X 4303 2957 D 9065 8697 8919 1603 F A 4623 F 5813 n x 7937 j q 3643 N H 4373
Output (English): 4021, 17, 13, 20, 22, 3091, 9815, 9, 2, 5711, 6751, 16, 24, 4303, 2957, 4, 9065, 8697, 8919, 1603, 6, 1, 4623, 6, 5813, 14, 24, 7937, 10, 17, 3643, 14, 8, 4373