Task: Program Execution
Input (English): 3289, 2715, 9977, r, 8327, 2975, 6755, 9497
Output (English): 1, 2, 3, 5, 6, 7, 8