Task: Program Execution
Input (English): 4, 6, ['P', 'X', '5465', 'C', 'Q', 'G', 'm', '4835', '3987', '7155', 'o', '1473', 'J', 'a', 'e', 'b', '5639']
Output (English): CQG