Task: Program Execution
Input (English): 349, k, 473, 143, d, m, i, 181, d
Output (English): 1, 3, 4, 7, 8, 9