Task: Program Execution
Input (English): 5715, x, N, 8707, U
Output (English): 5715, 8707