Task: Program Execution
Input (English): 2, 3, ['9771', 'i', '797', '5655', '79', 'q']
Output (English): 797i