Task: Program Execution
Input (English): P, 2841, 9827, B, 2817, 9815, 5041, 4323, w, D
Output (English): 34664