Task: Program Execution
Input (English): 4, 4, ['b', '3803', 'w', '7963', 'F', '59', '2107', 'B', '1093', 'D', 'w', 'p', 'c', '2317', '7947', 'F', '5337', '5063', 'Q', '777']
Output (English): 7963, B, p, F, 777