Task: Program Execution
Input (English): W, 2841, 5229, 9907, 861
Output (English): 1