respectively the institution which is competent to provide benefits in the place where the person concerned resides and the institution which is competent to provide benefits in the place where the person concerned is staying, under the legislation administered by that institution or, where no such institution exists, the institution designated by the competent authority of the Member State in question