Task: Program Execution
Input (English): 2, 5, ['3971', 'G', 'm', '1765', 'X', 'e', 'V', '3331', 'S', 'i', 'a', '6939', '9127']
Output (English): G, V, 6939