Task: Program Execution
Input (English): h, 249, 349, 27, 327, 141, 29, k
Output (English): 1, 2, 3, 4, 7, 9