Task: Program Execution
Input (English): 5, 377, 165, n, 145, 435, y, u
Output (English): 1, 3, 4, 5, 6, 7