Task: Program Execution
Input (English): Z, X, 8265, 4851, 9385
Output (English): 3