sentence1: Flags are used at all beaches to advise swimmers of sea a green flag means the sea is safe for swimming, while a red flag warns of danger.
sentence2: It is not advised to go in the sea when the red flag is flying.