Task: Program Execution
Input (English): 3657, 4989, D
Output (English): 1