Task: Program Execution
Input (English): k, 399, 35, w, 21, k, n, v, 451, h
Output (English): 1, 2, 3, 4, 5, 9