Task: Program Execution
Input (English): 2, ['x', 'm', '2565', 'G', '8067', '3565', 'X', 'Z']
Output (English): x, m