From Old Latin cosmis, from Proto-Italic *komsmis, from Proto-Indo-European *smey- (“to smile”) (whence mīrus).
Practice speaking and memorizing "comis" and many other words and sentences in Latin.