Task: Program Execution
Input (English): N, 3255, M, 2853, b, D, i, z, p, k, 4739, a, 7213, 7011, w, M, 1431
Output (English): 6