Staff and pupils went wild with joy when the lights came back on in a Puerto Rico school after months without power, video shows.

The Academia Bautista de Puerto Nuevo said it had gone 112 days without electricity after Hurricane Maria tore through the US territory last September.

The 20 September storm knocked out the island's power grid, leaving all 3.4 million residents without electricity, and disrupted the water supply.

In video posted to Facebook, pupils can be seen dancing in their classrooms as teachers come out into the halls to film the scene.

Singing, cheering and even bell-ringing erupt as the school celebrates in the clip posted on 11 January.

On Facebook, bosses said: "We are grateful to all the parents, students and staff who have stayed with us and continued to support us in this situation."

Local officials have warned that Puerto Rico's power and water and sewer companies will run out of money this month.

Both firms say their funds have dwindled since the Category 4 storm caused up to an estimated $95bn (£68bn) in damage, knocking out power to the entire island.

Nearly 40 per cent of power customers remain in the dark.

Last week the island's governor, Ricardo Rossello, criticised the federal government's response to Hurricane Maria and said residents of the island - who are US citizens - are being treated like "second-class citizens".

Mr Rossello and other critics have complained that federal aid given to Puerto Rico after its worst natural disaster has not been equal to that given to Florida, Texas and California after similar catastrophes.

Bringing aid to Puerto Rico Show all 20 1 /20 Bringing aid to Puerto Rico Bringing aid to Puerto Rico Crew chief Kenney shelters under the blade of an HH-60 Blackhawk helicopter from 101st Airborne Division's "Dustoff" unit preparing to take off during recovery efforts following Hurricane Maria, in Isla Grande, Puerto Rico, October 6, 2017 Reuters/Lucas Jackson Bringing aid to Puerto Rico An HH-60 Blackhawk helicopter from 101st Airborne Division's "Dustoff" unit takes off behind Crew Chief Alexander Blake and his fellow soldiers during recovery efforts following Hurricane Maria, in Morovis, October 5, 2017 Reuters/Lucas Jackson Bringing aid to Puerto Rico Crew member Bynum stands in tropical rain as a HH-60 Blackhawk helicopter from 101st Airborne Division's "Dustoff" unit prepares to take off during recovery efforts following Hurricane Maria, in Isla Grande, October 6, 2017 Reuters/Lucas Jackson Bringing aid to Puerto Rico UH-60 Blackhawk helicopter pilot Chris Greenway receives a hug from a woman thanking him for water as he works with the First Armored Division's Combat Aviation Brigade during recovery efforts following Hurricane Maria, in Verde de Comerio, October 7, 2017 Reuters/Lucas Jackson Bringing aid to Puerto Rico A man carries a case of water away from an HH-60 Blackhawk helicopter after soldiers working with 101st Airborne Division's "Dustoff" unit dropped off relief supplies during recovery efforts following Hurricane Maria, in Jayuya, October 5, 2017 Reuters/Lucas Jackson Bringing aid to Puerto Rico Crew chief Alexander Blake from 101st Airborne Division's "Dustoff" unit loads water into a helicopter during recovery efforts following Hurricane Maria, in Isla Grande, October 5, 2017 Reuters/Lucas Jackson Bringing aid to Puerto Rico Residents wait for soldiers in UH-60 Blackhawk helicopters from the First Armored Division's Combat Aviation Brigade to deliver food and water during recovery efforts following Hurricane Maria, in San Lorenzo Reuters Bringing aid to Puerto Rico An HH-60 Blackhawk helicopter from 101st Airborne Division's "Dustoff" unit lands in a field to avoid lightning during recovery efforts following Hurricane Maria, in Manati, October 5, 2017 Reuters/Lucas Jackson Bringing aid to Puerto Rico Residents hold their hands aloft to signal that they need water as UH-60 Blackhawk helicopters from the First Armored Division's Combat Aviation Brigade fly past during recovery efforts following Hurricane Maria, near Ciales, October 7, 2017 Reuters/Lucas Jackson Bringing aid to Puerto Rico Tropical rain splashes on a runway as HH-60 Blackhawk helicopters from 101st Airborne Division's "Dustoff" unit wait for weather to clear during recovery efforts following Hurricane Maria, in Isla Grande, October 6, 2017 Reuters/Lucas Jackson Bringing aid to Puerto Rico Pilot Eldwin Bocanegra Torres speaks with residents isolated by landslides in the mountains after unloading water and food from a helicopter during recovery efforts following Hurricane Maria, near Utuado, October 10, 2017 Reuters/Lucas Jackson Bringing aid to Puerto Rico Residents stand in front of wind-damaged trees as they wait for soldiers in UH-60 Blackhawk helicopters from the First Armored Division's Combat Aviation Brigade to deliver food and water during recovery efforts following Hurricane Maria, in San Lorenzo, October 7, 2017 Reuters/Lucas Jackson Bringing aid to Puerto Rico The contents of a home are seen from the air during recovery efforts following Hurricane Maria near Utuado, October 10, 2017 Reuters/Lucas Jackson Bringing aid to Puerto Rico Thomas looks out of the window of an HH-60 Blackhawk helicopter from 101st Airborne Division's "Dustoff" unit, loaded with relief supplies, during recovery efforts following Hurricane Maria in Isla Grande, October 6, 2017 Reuters/Lucas Jackson Bringing aid to Puerto Rico A message written on the rooftop is seen from the air during recovery efforts following Hurricane Maria near Humacao, October 10, 2017 Reuters/Lucas Jackson Bringing aid to Puerto Rico A HH-60 Blackhawk helicopter from 101st Airborne Division's "Dustoff" unit lands in a field during recovery efforts following Hurricane Maria in San Sebastian, October 6, 2017 Reuters/Lucas Jackson Bringing aid to Puerto Rico Sergeant First Class Eladio Tirado, who is from Puerto Rico, looks for a landing spot for a UH-60 Blackhawk helicopter from the First Armored Division's Combat Aviation Brigade, during recovery efforts following Hurricane Maria near Ciales, October 7, 2017 Reuters/Lucas Jackson Bringing aid to Puerto Rico Boys carry water away from an HH-60 Blackhawk helicopter after soldiers working with the U.S. Army's 101st Airborne Division's "Dustoff" unit dropped off relief supplies during recovery efforts following Hurricane Maria, in Jayuya, October 5, 2017 Reuters/Lucas Jackson Bringing aid to Puerto Rico Sergeant First Class Eladio Tirado from the First Armored Division's Combat Aviation Brigade, who is from Puerto Rico, speaks with residents as he helps during recovery efforts following Hurricane Maria, in San Lorenzo, October 7, 2017 Reuters/Lucas Jackson Bringing aid to Puerto Rico Residents peek through a fence at helicopters from 101st Airborne Division's "Dustoff" unit that had parked in a locked field during recovery efforts following Hurricane Maria, in Lares, October 6, 2017 Reuters/Lucas Jackson

A billion-dollar emergency loan approved by Congress to help Puerto Rico deal with the effects of the hurricane has been temporarily withheld by federal officials who said the US territory is not in fact facing the cash shortage it has repeatedly warned of in recent months.

The island central cash balance exceeded $1.5bn in the nearly four months since Maria struck, the Federal Emergency Management Agency (FEMA) said, noting the local government released documents in late December showing it had nearly $7bn available in cash.

Puerto Rico's 78 municipalities can separately apply for loans, FEMA said.