Task: Program Execution
Input (English): 4, 8, ['G', '1565', 'd', 'D', 'A', '9083', '5333', '7047']
Output (English): D, A, 9083, 5333, 7047