Task: Program Execution
Input (English): Q, 4509, t, p, 4663, 2849, 5973, L, 4437, B, 4331
Output (English): 17, 4509, 20, 16, 4663, 2849, 5973, 12, 4437, 2, 4331