Task: Program Execution
Input (English): 359, 167, l, q, 221
Output (English): 1, 2, 3, 5, 6, 7, 9