This is the 3741st most frequent Russian word.
флагом
The Russian word "флагом" means "with a flag" or "by the flag" (instrumental case of "флаг" - flag).
In this sentence, 'флаг' is used as a noun to describe the flag on the ship.
На корабле гордо развевается флаг.
The flag proudly waves on the ship.
Here, 'флаг' symbolizes a banner or metaphorical representation of achievements.
Они отметили свои достижения, подняв их на флаг.
They celebrated their achievements by raising them as a flag.
In this instance, 'флагом' is used in the instrumental case to indicate the emblem or representation associated with the event.