Task: Program Execution
Input (English): 10, 12, ['m', 'n', 'i', 'p', 'g', '7943', '1373', 'X', 'c', '2145', 'Q', '5469', '7995', '3865']
Output (English): 5469, Q, 2145