Task: Program Execution
Input (English): 3, 5, ['a', '489', 'M', 'j', 'W', '4991']
Output (English): WjM