BANGKOK/CHIANG RAI (Reuters) - The head of a Thai navy SEAL diving team that helped lead 12 boys and their soccer coach through a flooded cave complex to safety urged the boys on Thursday to “make the most” of their lives and be a force for good.

The first footage of the boys, aged 11 to 16, convalescing in hospital in the northern city of Chiang Rai emerged on Wednesday, with some, wearing face masks and hospital gowns, giving peace signs to the camera.

Health officials said the boys would spend at least a week in hospital and around 30 days recovering at home following more than two weeks trapped inside the flooded Tham Luang cave complex.

Thirteen foreign divers and five Thai Navy SEALs guided boys and their coach out in a complicated three-day operation that ended on Tuesday.

“Make the most of your lives. Be good people, be a force for good for your country,” Rear Admiral Apakorn Yuukongkaew, commander of Thailand’s navy SEALS unit, said in a message to the boys before boarding a flight from Chiang Rai.

“Hooyah!” Apakorn shouted before flying out, using a morale-building navy term.

Footage released by the SEALs showed parts of the rescue operation that captivated the world.

The boys were held close to the divers and remained motionless for parts of the journey where they had to dive. They were then carried on stretchers through dry parts to the cave’s entrance.

Deputy Prime Minister Prawit Wongsuwan said on Wednesday the operation was nothing short of a miracle.

Families of the 12 boys have been allowed to visit them.

A statement from Thailand’s public health ministry on Thursday said two boys from the first group rescued on Sunday who were diagnosed with a lung infection were recovering well. Three boys from the last group saved have ear infections.

The boys’ families can visit them wearing protective gowns and masks, it added.

At U-Tapao civil-military airport in Rayong province, near where the Royal Thai Navy operates out of Sattahip Naval Base, Thai navy SEALs and some foreign military personnel were given a hero’s’ welcome when they touched down on Thursday.

Slideshow ( 8 images )

Those involved in the rescue were give large garlands made from marigolds as navy officers and proud civilians stood by. Some well-wishers at the air base prepared red roses.

“All Thais are proud of you ... You have made a name for the SEALs unit,” a senior navy official told those gathered.

The Tham Luang cave complex will remain closed to the public for at least six months, said Chongklai Worapongsathorn, deputy director-general of the Department of National Parks, Wildlife and Plant Conservation.