Task: Program Execution
Input (English): 5, 6, ['Q', '2175', '5595', 'x', '5117', '79']
Output (English): 977115