Task: Program Execution
Input (English): 1, 3, ['b', 'g', 'r', 'D', '2687']
Output (English): bgr