All 12 Thai Soccer boys and their coach have been rescued from a flooded Thai cave complex where they were trapped for more than two weeks, according to the country’s navy SEALs.

The SEALs, who were central to the rescue effort, said on their Facebook page that the remaining four boys and their 25-year-old coach were all brought out safely Tuesday. Eight of the boys had been brought out of the cave by a team of Thai and international divers on Sunday and Monday.

“We are not sure if this is a miracle, a science, or what. All the thirteen Wild Boars are now out of the cave,” the SEALs said, referring to the name of the boys’ soccer team.

Tech Entrepreneur Elon Musk (who was reached out to by muliple people via twitter to help) has offered a “kid-sized” submarine, named Wild Boar after the kids’ soccer team, to help in the rescue operation. He posted videos of the sub being tested in a swimming pool in California with simulated narrow passages like the cave.