Task: Program Execution
Input (English): 3, 4, ['2379', '2401', 'G', 'X', '6487', 'E']
Output (English): XG