Task: Program Execution
Input (English): 4, 9, ['7823', '7163', 'm', 'Q', '9849', '961', 'D', 'b', 'h', 'g']
Output (English): h, b, D, 961, 9849, Q