Task: Program Execution
Input (English): 3, 3, ['U', '8399', '645', '3165']
Output (English): 645