Task: Program Execution
Input (English): 3515 3775 5111 7489 A 8979 Q O V 1691 889 3191 Q 8565 o 2649 B 4355 1165 5491 g 933 4207 r X G W 1297
Output (English): 3515, 3775, 5111, 7489, 1, 8979, 17, 15, 22, 1691, 889, 3191, 17, 8565, 15, 2649, 2, 4355, 1165, 5491, 7, 933, 4207, 18, 24, 7, 23, 1297