Task: Program Execution
Input (English): 5097, 5511, 9243, 1863, 5827, 7673, P, 1169
Output (English): P