Task: Program Execution
Input (English): 6, 6, ['z', 'm', '1127', 'S', '4971', 'w']
Output (English): w