Updated

Goats aren't known for being the Einsteins of the animal kingdom, but they're highly adaptable to challenging environments—and that may be because they're a lot smarter than researchers had believed, Phys.org reports.

Scientists in London and Switzerland gave goats what they called a "complex foraging task," per their paper published in Frontiers in Zoology: First, the animals had to pull on a rope to get at a lever.

Next, they had to lift that lever to get a fruity snack, the Smithsonian reports. Nine of 12 goats tested were able to learn to do so within four tries.

Two others tried to cheat using their horns, while one poor sap simply couldn't figure it out after 22 tries. Ten months later, the nine champs were given the task again.

Seems they hadn't forgotten what they'd learned: They all got to the fruit within about a minute. "Our results challenge the common misconception that goats aren't intelligent animals; they have the ability to learn complex tasks and remember them for a long time," says the study's co-author.

"This could explain why they are so successful in colonizing new environments, though we would need to perform a similar study with wild goats to be sure." Speaking of goat smarts, Smithsonian notes that some goats in Morocco are known to climb trees, and they're not the only animal to surprisingly do so.

More From Newser