Task: Program Execution
Input (English): 5, 5, ['2801', '2479', 'g', '3787', '5063']
Output (English): 5063