Task: Program Execution
Input (English): D, z, 2951, 7945, x, P
Output (English): 4, 26, 2951, 7945, 24, 16