BOZEMAN, Mont. (AP) — A 24-year-old Bozeman man has been sentenced to four years in prison and five years of supervised release after pleading guilty to robbing two banks in Bozeman in 2010.

The Bozeman Daily Chronicle reports that Joshua J. Swigut on Friday in U.S. District Court in Missoula was also ordered to pay $12,340 in restitution.

Authorities say Swigut wore a disguise and showed a weapon to rob a First Interstate Bank of $1,940 on Nov. 23, 2010. Police say that some three weeks later on Dec. 16 he wore a similar disguise and robbed a First Security Bank of $10,400.

A witness told investigators that Swigut boasted about the two robberies and explained how he did it.