Task: Program Execution
Input (English): 4, 4, ['g', 'H', '7293', 'Q']
Output (English): Q