Task: Program Execution
Input (English): D, 2979, n, 965, t, S
Output (English): 3944