Task: Program Execution
Input (English): n, w, 345, 275, a, 125, s, f, 377, 145
Output (English): 1, 2, 3, 4, 5, 7