Task: Program Execution
Input (English): P, M, 8451, 7711, b, u, 5091, 6621, Q, w, 795, 6541, 6631, q, 9681, 2235, 7581, 2563
Output (English): 63901