Task: Program Execution
Input (English): 1, 4, ['Q', '6877', 'L', 'f', '503', 'g', 'L', '9']
Output (English): 6877