Task: Program Execution
Input (English): 2, ['Q', 'j', '6771', 'J', 'P', '8511', '7041', '3061', 'h']
Output (English): Q, j