PORTLAND, Maine — A New Hampshire man was sentenced Wednesday in U.S. District Court in Portland to 63 months in prison and five years of supervised release for armed bank robbery.

Daniel Barry, 38, of Pembroke, N.H., also was ordered to pay $15,471 in restitution, U.S. Attorney Thomas E. Delahanty II said in a news release.

The charges stemmed from two armed bank robberies in York County last fall. Kennebunk Savings in Eliot was robbed Oct. 19. Ocean Communities Federal Credit Union in Sanford was robbed Oct. 26.

Barry’s accomplice, Brianne Mone, 27, of Dover, N.H., was sentenced to 45 months in prison and 3 years of supervised release for aiding and abetting armed bank robberies in Maine and New Hampshire.

Those charges arose from the Aug. 21 armed bank robbery at Citizen’s Bank in Somersworth, N.H., and the robbery of the Ocean Communities Federal Credit Union in Sanford on Oct. 26. Mone was also ordered to pay $10,708 in restitution.

During the Kennebunk Savings robbery, Barry vaulted over the teller counter and took $7,896 from the teller drawers, while an associate, Philip Gage, pointed a Ruger Redhawk .44 Magnum at tellers, according to court records.

Both the .44 Magnum Gage used during the robbery and the Dan Wesson .22-caliber revolver Gage used to rob $8,574 from the Sanford credit union were recovered during a search of Barry’s residence.

Mone was the getaway driver for the Citizen’s Bank and Ocean Communities armed bank robberies. During the Citizen’s Bank robbery, Gage gave a teller a handwritten demand note that read, in part, “I have a bomb and a gun, if you say a word, you will die” and absconded with $3,132, according to police.

The case was investigated by the Federal Bureau of Investigation, the Maine State Police and the police departments from Eliot, Kittery, Sanford, Berwick and York. It was also aided by police departments from Exeter, Somersworth, Alton and Pembroke, N.H.