BANGOR, Maine — A Lincoln man was sentenced Thursday to four years and three months’ imprisonment for failing to register on the Maine Sex Offender Registry, officials said Friday.

Daniel Rice, 23, pleaded guilty to the failure to register charge and had his probation revoked as a condition of the plea at Penobscot Judicial Center, Assistant Penobscot County District Attorney Marianne Lynch said.

Rice was on three years’ probation when Lincoln police issued him a summons for failing to register in October, Lincoln police said Friday.

He was originally sentenced to five years in prison with all but nine months suspended and given the probation during a court appearance in March 2013, when he admitted having sex with two girls ages 13 and 14 in several incidents dating back to September 2012, officials said.

Rice pleaded guilty to three counts each of unlawful sexual touching and violation of a condition of bail, one count each of unlawful sexual contact, all Class C crimes, and sexual abuse of a minor, a Class D crime, officials said.

In a plea agreement with prosecutors, the more serious gross sexual assault charges were dropped, Rice’s attorney, Stephen Smith of Bangor, said after the March sentencing.

The gross sexual assault charges arose from Rice continuing his sexual relationship with the 13-year-old after being arrested for it, officials said. The gross sexual assault charges occurred in February 2013. The initial charges came in September 2012.

Gross sexual assault is a felony punishable by up to 30 years in prison. Violation of condition of release is a Class C crime punishable by up to five years in prison. Sexual abuse of a minor is a misdemeanor punishable by up to a year in prison.

BDN writer Judy Harrison contributed to this report.