Task: Program Execution
Input (English): Q, c, 7209, 7351, 5253, C, Y, 9313, P, X
Output (English): 17, 3, 7209, 7351, 5253, 3, 25, 9313, 16, 24