The lengths of the sides of a triangle are consecutive integers. If the perimeter of the triangle is 111, find the lengths of the sides.