Task: Program Execution
Input (English): D 8813 8343 t b r w 8605 6399 6699 e 9835 J p 8537 5187 4793 3091 x T 1643 r h G R
Output (English): 4, 8813, 8343, 20, 2, 18, 23, 8605, 6399, 6699, 5, 9835, 10, 16, 8537, 5187, 4793, 3091, 24, 20, 1643, 18, 8, 7, 18