Task: Program Execution
Input (English): 7, 7, ['8247', 'k', '4897', '8729', 'E', 'T', '9789']
Output (English): 9789