Task: Program Execution
Input (English): 2, 3, ['v', 'G', 'H', '5871']
Output (English): G, H