Task: Program Execution
Input (English): 3971, V, 8279, P
Output (English): 3971, 8279