Task: Program Execution
Input (English): 7, ['m', '5143', '251', '3091', '8195', 'Z', 'U', 'M', '2611', 'C', '5781', 'D', '3411', '729']
Output (English): M, 2611, C, 5781, D, 3411, 729