Task: Program Execution
Input (English): K, D, 4969, 653, 9593, 3861, r, 6399, 6903, 3007, 4347, Q, V
Output (English): 4969, 653, 9593, 3861, 6399, 6903, 3007, 4347