Task: Program Execution
Input (English): 8565 e 2195 x p 3421 v A 7677 n w 8705 8055 N V P 9289 6221 p 313 4643 9721 7925 g 8873 Y S x
Output (English): 8565, 5, 2195, 24, 16, 3421, 22, 1, 7677, 14, 23, 8705, 8055, 14, 22, 16, 9289, 6221, 16, 313, 4643, 9721, 7925, 7, 8873, 25, 19, 24