Task: Program Execution
Input (English): 1391, 6745, 6249, z, Y, 4799, 5263, X, 9927
Output (English): 6