Task: Program Execution
Input (English): j, f, 3831, B, D
Output (English): 3831