Task: Program Execution
Input (English): X, P, x, 9471, 5, c, f, 5077, 1085, 2267, R, q, 4987, 9529, H, n, r, u
Output (English): 32421