Task: Program Execution
Input (English): A, v, P, 2689, 705, q, 1057, 7561, G, 4851, B, 3921, 5669, 4163
Output (English): 2689, 705, 1057, 7561, 4851, 3921, 5669, 4163