Task: Program Execution
Input (English): 1877, 1415, D
Output (English): 1, 2