Multi-choice problem: does word "academy" have the same meaning in the following two sentences?

A riding academy.

Academies of literature and philology.

Possible answers:
 --different meanings.
 --the same meaning.
different meanings