Task: Program Execution
Input (English): 3, 4, ['L', 'D', 'g', '3985']
Output (English): 3985