Task: Program Execution
Input (English): 3, 5, ['K', 'X', 'f', 'B', 'q', '6735']
Output (English): f, B, q