Task: Program Execution
Input (English): 3, 7, ['8971', 'Z', 'x', '2047', 'U', '4277', '7531', '7107', '2487', '9535', '6855', 'f', '8635', '6441', '3663', '5627', '3479', 'T', '6187']
Output (English): x, 9535, 3479