Task: Program Execution
Input (English): 3351, P
Output (English): 1