Task: Program Execution
Input (English): 315, 5, 267, w, x, o, 377, a
Output (English): 1, 2, 3, 5, 6, 7