Task: Program Execution
Input (English): 5863, M, 9393, 7689, b, K, 4769, A, q, 947, 9043, 9399, 5715, 9631
Output (English): 2, 5, 6, 8, 9