Task: Program Execution
Input (English): 3, 6, ['p', '7325', 'Z', '511', '41', '1749', '5625', '4661']
Output (English): 1749, 41, 511, Z