Task: Program Execution
Input (English): m Q U D 9407 p X 9975 5071 Y 4801 A J 2711 2959 Z R 7749 8635 7141 p x K B 2733 2513 k B j 6463 1651 8955 X
Output (English): 13, 17, 21, 4, 9407, 16, 24, 9975, 5071, 25, 4801, 1, 10, 2711, 2959, 26, 18, 7749, 8635, 7141, 16, 24, 11, 2, 2733, 2513, 11, 2, 10, 6463, 1651, 8955, 24