Task: Program Execution
Input (English): W, 135, 2535, 1651, 3417
Output (English): 7738