Task: Program Execution
Input (English): w, 37, 359, 397, k, j, g, 317, 467, c, 471, r
Output (English): 1, 3, 4, 5, 6, 7, 9