Знамени is the from the word знамёна?
They both are forms of the word "знамя"

Look at the table on the right for conjugations.
знамя — Викисловарь