Task: Program Execution
Input (English): 3, 5, ['501', 'm', '1077', 'w', '1989']
Output (English): 1989, w, 1077