Task: Program Execution
Input (English): n, 6117, 3957, Q, P, 8781, 1469, y, b, 3081, 4819, b, 5713
Output (English): 14, 6117, 3957, 17, 16, 8781, 1469, 25, 2, 3081, 4819, 2, 5713