Task: Program Execution
Input (English): 1273, 9563, 2457, q, m, w, 5861, i, 4857, S, K, b
Output (English): 1, 2, 3, 7, 9