Task: Program Execution
Input (English): 5849, a, 7527, 3247, 7537, 9775, K, 1585, q, 9559, 3591, 9871, Q, C, 2813, 529, b, r, i, s, 7647, 3503
Output (English): 5849, 7527, 3247, 7537, 9775, 1585, 9559, 3591, 9871, 2813, 529, 7647, 3503