Task: Program Execution
Input (English): 1247, g, x, N, 7061, f, 7453, a, 6567
Output (English): 4