Task: Program Execution
Input (English): 3787, 371, w
Output (English): 4158