Task: Program Execution
Input (English): x, Q, t, 7491, P, W, L, w, g, q, 447
Output (English): 7938