Task: Program Execution
Input (English): 6, ['J', 'Q', '8081', '2185', '1147', 'M', '1671', 'k', '9089', '8515', '1831', 'H']
Output (English): J, Q, 8081, 2185, 1147, M