How do formula one cars generate downforce?

Formula one cars generate downforce mainly using front and rear wings.