Task: Program Execution
Input (English): 5, 5, ['h', '9153', 'Z', 'Q', 'M', 'L', 'J', '3481']
Output (English): M