Task: Program Execution
Input (English): 5, 6, ['3979', '8747', 'X', 'P', 'Q', 'I', 'b']
Output (English): I, Q