Task: Program Execution
Input (English): 5, 6, ['9125', '7891', '9625', '7787', '5701', 'X', 'q', '5167', 'D']
Output (English): X, 5701