Task: Program Execution
Input (English): 2, 2, ['8459', '4083', 'O', '8429', 'F']
Output (English): 4083