Seven nouns, five verbs, and two adjectives are written on a blackboard. How many ways are there to form a sentence by choosing one word of each type?