Task: Program Execution
Input (English): 2, 5, ['a', 'J', 'C', 'R', '1645', '8881', 'g', 'h', 'J', 'H', 't', 'J', '267', 'I', '1773', '3865']
Output (English): 1645, R, C, J