From danki (“to thank”) + -ema.
dankema (accusative singular dankeman, plural dankemaj, accusative plural dankemajn)