Task: Program Execution
Input (English): Q, M, 4815, 7033, I
Output (English): 17, 13, 4815, 7033, 9