Task: Program Execution
Input (English): N, 8543, 565, 8669, x, X, V
Output (English): 4