Task: Program Execution
Input (English): 2871, Q, C, m, F, v, s, 7141, B, 1585, P, 7121
Output (English): 2871, 17, 3, 13, 6, 22, 19, 7141, 2, 1585, 16, 7121