Task: Program Execution
Input (English): g, 243, j, 289, 129, b, c, w, 435, 341, 315, x, a
Output (English): 1, 2, 3, 4, 5, 8, 9