Task: Program Execution
Input (English): 8431, Q, 467, 27, B
Output (English): 8925