Task: Program Execution
Input (English): 3001, x, j, 2971, 1107
Output (English): j, x