Task: Program Execution
Input (English): Q M V m 5007 5029 z X 8815 3239 Z 6575 4503 6497 153 p S x 1421 N C F x Y I C 8505 3471 P T 3391 L r Q 3583 v W T 1581
Output (English): 17, 13, 22, 13, 5007, 5029, 26, 24, 8815, 3239, 26, 6575, 4503, 6497, 153, 16, 19, 24, 1421, 14, 3, 6, 24, 25, 9, 3, 8505, 3471, 16, 20, 3391, 12, 18, 17, 3583, 22, 23, 20, 1581