Task: Program Execution
Input (English): 1, 3, ['Q', 'K', 'B', 'z', '4311']
Output (English): B, K, Q