<human>:  In a compound, the number of cats is 20% less than the number of dogs. There are also twice as many frogs as the number of dogs in the compound. Calculate the total number of animals present in the compound if there are 160 frogs.
<bot>: How many dogs are there? ** There are twice as many frogs as dogs in the compound, meaning there are 160/2 = <<160/2=80>>80 dogs.
How many animals are there? ** The total number of frogs and dogs in the compound is 80+160 = <<80+160=240>>240
How many dogs are there? ** The number of cats is less than 20% of the number of dogs, which means there are 20/100*80 = <<20/100*80=16>>16 dogs more than the number of cats.
How many cats are there? ** Therefore, the number of cats is 80-16 = <<80-16=64>>64 cats
How many animals are there? ** The total number of animals in the compound is 64 cats +240 dogs and frogs = <<64+240=304>>304 animals.
#### 304