Task: Program Execution
Input (English): 2, 7, ['E', 'Z', '3959', '5209', 'K', '2665', 'f', '6987']
Output (English): f, 2665, K, 5209, 3959, Z