Task: Program Execution
Input (English): O, x, 2197, M, E, p, 1471, D, Q, W, q, 1315, f
Output (English): 3, 7, 12