Task: Program Execution
Input (English): S, 9467, T, 881, 3997, N, Z, 3147, 9577, 1691, 1315, l, V, 4065, 6997
Output (English): 6