Task: Program Execution
Input (English): Q O Q 6937 547 D z Q 2257 155 3015 2199 5701 x G 4085 p J 291 1433 y z 2247 a 8965 8261 Y X P g
Output (English): 17, 15, 17, 6937, 547, 4, 26, 17, 2257, 155, 3015, 2199, 5701, 24, 7, 4085, 16, 10, 291, 1433, 25, 26, 2247, 1, 8965, 8261, 25, 24, 16, 7