Prints the flags at the end