Task: Program Execution
Input (English): 2, 3, ['8337', '6007', '4699', 'X']
Output (English): 10706