Task: Program Execution
Input (English): 3449, 7997, k, 197, 9797, 3467, 9857, q, 3537, 8109, D, D, 4803, 1475, 9271, 2731
Output (English): k, q, D, D