Task: Program Execution
Input (English): V 4147 6997 5695 A B s A 6277 P 7471 2317 K N G 211 961 n l 8339 R a M k 4369 t n q J 2399 r r 3515 U 5299 3645 I
Output (English): 22, 4147, 6997, 5695, 1, 2, 19, 1, 6277, 16, 7471, 2317, 11, 14, 7, 211, 961, 14, 12, 8339, 18, 1, 13, 11, 4369, 20, 14, 17, 10, 2399, 18, 18, 3515, 21, 5299, 3645, 9