Task: Program Execution
Input (English): 14, 14, ['M', 'V', 'p', '1061', '5017', 'Z', 'j', '3951', '3157', '4705', '8479', 'g', 'u', 'Q', '4197', 'V', 'I']
Output (English): Q