Task: Program Execution
Input (English): 8291, D, N, 3117
Output (English): 8291, 4, 14, 3117