Task: Program Execution
Input (English): 5, 5, ['a', 'n', 'Q', 'p', 'W', '8791', 'o', 'Y']
Output (English): W