Task: Program Execution
Input (English): z, x, 5189, 1293, 6371, r, 4643, 9799
Output (English): 3