Two men were taken to hospitals early Wednesday morning after they were rescued from a burning house in Fairmount Heights, officials said.

Shortly after 2:30 a.m., Fire/EMS units arrived at a single family home in the 5300 block of Sheriff Road with a fire on the second floor. Firefighters rescued two men from the residence, and a third occupant had escaped safely before firefighters came to the scene, according to the Prince George's County Fire/EMS Department.

One of the rescued occupants, a man in his 60s who sustained burns and smoke-inhalation injuries, was taken to a burn unit in serious condition, officials said. The other man who was rescued, who is in his 70s, sustained minor injuries and was taken to a hospital in good condition.

It took about 15 minutes for firefighters to put out the blaze, officials said. No other injuries were reported.

Fire loss is estimated at $35,000, and investigators are working to determine the cause of the fire.