It is known that octopuses with 7 legs always lie, while those with 6 legs and those with 8 legs always tell the truth. One night, four octopuses met:
Who spoke the truth?
Note: Each octopus has either 6, 7, or 8 legs.