Task: Program Execution
Input (English): p, 5061, q, 4671, H, D, 6669, x, 9437, 1071, K, 4377, 513, G, e, d, 3905, 611, 4045, r, 6129, J, 4945
Output (English): 5061, 4671, 6669, 9437, 1071, 4377, 513, 3905, 611, 4045, 6129, 4945