Task: Program Execution
Input (English): 5335, q, Q, 3409, 6177, Q, D, Y, L, 1187, 1997
Output (English): 5335, 17, 17, 3409, 6177, 17, 4, 25, 12, 1187, 1997