Task: Program Execution
Input (English): N, H, x, 2523, B, 5289, 8363, J, z
Output (English): 16175