PLEASE HELP ME FOR 50. POINTS AND BRAINLIST!!

In the following sentence, write N, ADV, or ADJ if the infinitive phrase is working as a noun, adverb, or adjective.

THE SENTENCE -> He needs to ace the exam.