Task: Program Execution
Input (English): P, 1643, 1071, 5715, 2927, 3057, B, D, 9937, 5191, 1893
Output (English): 16, 1643, 1071, 5715, 2927, 3057, 2, 4, 9937, 5191, 1893