Task: Program Execution
Input (English): 4689, 1217, l, 1507, 5747, 785
Output (English): 1, 2, 4, 5, 6