Task: Program Execution
Input (English): 5, 5, ['H', 'q', '7141', 'o', '3295']
Output (English): 3295