Task: Program Execution
Input (English): f, S, a, 4355, 319, d, 2977, 4697, g, 553, 7963, Q, K, 4405, N, 2975
Output (English): f, S, a, d, g, Q, K, N