Task: Program Execution
Input (English): P, n, q, 8871, 4283, 6379, F, E, 9391, E, u, Z, T, 5211, Z, u, 6157, n
Output (English): 40292