Task: Program Execution
Input (English): Q, 5053, K, 6771, L, l, P, i, 7191, 9653, 487, V, v, 5743, 7789, g, m, w
Output (English): Q, K, L, l, P, i, V, v, g, m, w