Where does “기(旗)” come from?

Words derived from “기(旗)