Task: Program Execution
Input (English): 3, 3, ['9031', 'X', '3141']
Output (English): 3141