Iowa City man sentenced to five years for bringing gun to sc