Task: Program Execution
Input (English): r, Q, U, Q, D, 1617, 1281, 5249, 8327, D, 8647, b, 7641, s, 7617, 8211, d, 2941, H, 7539, 3013, 5305, 6265
Output (English): 18, 17, 21, 17, 4, 1617, 1281, 5249, 8327, 4, 8647, 2, 7641, 19, 7617, 8211, 4, 2941, 8, 7539, 3013, 5305, 6265