Task: Program Execution
Input (English): 6, 9, ['5981', 'z', 'h', '9651', 'd', '1087', '3573', '2985', 'M', '1977', 'J', '3695', 'F', 'J', 'U', 'P', '4147', 'x', 'b', '5705', '9029', 'N', 'K']
Output (English): 1087, 3573, 2985, M