Task: Program Execution
Input (English): 2417, s, 5821, 1017, P
Output (English): 2417, 5821, 1017