Task: Program Execution
Input (English): d, n, 7497, q, I, g, c, T, 3979, 6587
Output (English): d, n, q, I, g, c, T