Task: Program Execution
Input (English): 1, 5, ['5047', 'x', 'm', '4453', '8119', '9889', 'R', 'S', '9157', '9817']
Output (English): 5047, 9889