Generally, you want the case fans in front of the case drawing in air while the fans at the rear blow air out. If your case has vents at the top, they should be placed as exhaust fans because hot air will rise. Side-mounted fans should be used for intake, though they often don't have air filters.