Task: Program Execution
Input (English): 1, 5, ['D', '3371', '409', '679', 'p', '7387', '4977', 'c', 'd', '2127', '9059', 'c']
Output (English): D, 7387, 9059