How is the underlined word used in the sentence?

Mangoes are Nathan's favorite fruit.

direct object

subject

subject complement

direct address