Task: Program Execution
Input (English): 8707, 5191, 1973, 4495, 4487, 9023, 135, 9009, r, a, 6487, 5475
Output (English): 2