наприкінці

Etymology
, locative case of.

Adverb

 * , in the end, finally

Preposition

 * 1)  of a period of time