Input (grade 13): A flagship is a vessel used by the commanding officer of a group of naval ships, reflecting the custom of its commander, characteristically a flag officer, flying a distinguishing flag.
Output (grade 7): A flagship is the ship used by the officer who commanded a group of naval ships. The term comes from the custom of the commanding officer to fly a special flag to show he was present.