Task: Program Execution
Input (English): 3, 5, ['1243', 'Q', 'J', '1651', 'f', 'p', 'H']
Output (English): f, 1651, J