Task: Program Execution
Input (English): 2723, 1995, 4987, D, 8247, B
Output (English): 1, 2, 3, 5