Task: Program Execution
Input (English): 391, w, k, 223, 297, p
Output (English): 1, 2, 3, 7, 9