Task: Program Execution
Input (English): d, x, Z, 3961, 791, 3281, 9451, J, 4989, 2263
Output (English): 24736