A man who yelled an expletive at former Chicago Mayor Richard M. Daley on his final day in office was sentenced Friday to three years in prison.

Janusz Kopycinski, 31, yelled "F*** the mayor!" and spat in the mayor's general direction as a crowd gathered outside City Hall as Daley left one last time as mayor on May 13, 2011, according to police, the Chicago Sun-Times reports.

Police officers proceeded to request identification, causing Kopycinski to run. Police made chase and one of the officers was grazed by a moving CTA bus during the pursuit.

The officer sustained minor, non-life-threatening abrasions in the grazing, but the injury was enough for charges against Kopycinski to be elevated from misdemeanor resisting arrest.

Kopycinski, who testified in court that he meant no harm to anyone, was found guilty in April of aggravated battery to a police officer and resisting arrest in the incident, NBC Chicago reports.

The man faced up to seven years in prison, charges further elevated in light of a 2007 arrest for battery to police where Kopycinski was found guilty but mentally ill.