Task: Program Execution
Input (English): 5421, 4825, 2823, D, C, 5071
Output (English): 1, 2, 3, 6