Task: Program Execution
Input (English): w, j, 287, a, g, j, p, 377, l, 29, 471, 345
Output (English): 1, 2, 3, 4, 5, 7, 8, 9