Task: Program Execution
Input (English): 5, 399, 113, j, 77, 127, 349, d
Output (English): 1, 2, 3, 4, 5, 7, 9