Task: Program Execution
Input (English): S, 9903, 8761, D, 6523, 5675, 2663, z, 2669, 9847, 5363, 7907, J, 2111, Q, 5347, 4823
Output (English): 9903, 8761, 6523, 5675, 2663, 2669, 9847, 5363, 7907, 2111, 5347, 4823