Firefighters yesterday rescued a man and a woman desperately hanging from windows of a burning Harlem brownstone.

The woman (pictured) “was just screaming,” said firefighter Artie Kunz, who used a ladder to save the two at East 127th Street and Madison Avenue. “I reached out and grabbed her, and she jumped into my arms.”

The fire began in the mostly vacant building shortly after 4 p.m., officials said.

The man and woman fled to the fifth floor, which didn’t have a fire escape, and were forced to hang out the windows to escape the overwhelming smoke.

Another team of firefighters pulled a third victim from the building — an unconscious woman who had gone into cardiac arrest.

She was revived in the ambulance and transported to Harlem Hospital in serious condition.

Nina Persson, 35, who lives across the street, said the brownstone, which was renovated about 18 months ago, is at least partly occupied by squatters.