Task: Program Execution
Input (English): w, 3939, A, f, 4971
Output (English): 8910