A shoeless hiker traveled through the Maine woods to find help for two friends after the three of them became lost in the Maine woods last weekend.

According to officials with the Maine Department of Inland Fisheries and Wildlife, the three hikers became lost near Sebago Lake in the town of Steep Falls.

The three were reportedly hiking on Saturday afternoon when they became lost. They ended up in a bog, which is where they spent the night.

The following morning, one of the hikers hiked shoeless to a nearby house and asked for help.

A police dog picked up the scent of the hikers at around 3 p.m. and found the remaining two hikers in the bog.

Officials said the two hikers were severely hypothermic and could not walk on their own. They were carried out of the woods by wardens and they were taken by ambulance to a local hospital. Officials say they’re expected to make a full recovery.

According to an article on Backpacker.com, it isn’t clear why the third hiker didn’t have shoes, but officials said it could have been a sign of hypothermia.