Task: Program Execution
Input (English): w, 289, 45, 337, 165, 239, m, h
Output (English): 1, 2, 3, 4, 5, 6, 7, 8, 9