Task: Program Execution
Input (English): 2, 3, ['7111', '2777', '865', 'x']
Output (English): 865, 2777