Task: Program Execution
Input (English): Z, 1117, 265, 2961, 39
Output (English): 4