Task: Program Execution
Input (English): x, J, 9889, 5719, 7415, 2711
Output (English): 4