Task: Program Execution
Input (English): 2, 5, ['B', 'E', '3951', 'L', '4367', 'h']
Output (English): 8318