Task: Program Execution
Input (English): 3991, 3897, 845, B, 5543, 4613, 6123
Output (English): 1, 2, 3, 5, 6, 7