Courtesy and national flags are used to display a vessel’s nationality and comply with maritime etiquette when entering foreign waters.