Task: Program Execution
Input (English): 9785, 5775, 2725, 321, D
Output (English): 1, 2, 3, 4