Task: Program Execution
Input (English): D 8741 a 3791 6187 r V D 2931 I D 3879 3779 5291 B K 7477 j 6321 b U J Y 1237 1155 479 4349 2985 g 97 2217 8113 8891 M X
Output (English): 4, 8741, 1, 3791, 6187, 18, 22, 4, 2931, 9, 4, 3879, 3779, 5291, 2, 11, 7477, 10, 6321, 2, 21, 10, 25, 1237, 1155, 479, 4349, 2985, 7, 97, 2217, 8113, 8891, 13, 24