Task: Program Execution
Input (English): 3405, 2395, Q, R, g, u, t, 1321, 4331, 5573, C, 3365
Output (English): 3405, 2395, 17, 18, 7, 21, 20, 1321, 4331, 5573, 3, 3365