Task: Program Execution
Input (English): 9795, 2737, 6629, G, 1601, b, 9487, 4131, 2917, K, r, q, s, G, c, k, K, 2343
Output (English): 9795, 2737, 6629, 1601, 9487, 4131, 2917, 2343