Task: Program Execution
Input (English): 951 Q 7521 U m W 2597 8493 5641 7459 5085 Y 1529 D M z 2251 z F z T 2743 1999 6165 Y 5187 v 195 4955 Q 9337 8577
Output (English): 951, 17, 7521, 21, 13, 23, 2597, 8493, 5641, 7459, 5085, 25, 1529, 4, 13, 26, 2251, 26, 6, 26, 20, 2743, 1999, 6165, 25, 5187, 22, 195, 4955, 17, 9337, 8577