Task: Program Execution
Input (English): 6659, 9797, D
Output (English): 3