Task: Program Execution
Input (English): d, V, 5381, P, V
Output (English): 4, 22, 5381, 16, 22