Task: Program Execution
Input (English): f, B, Q, 893, 8021
Output (English): 8914