One side of a triangle is 1 in. longer than the shortest side and is 1 in. shorter than the longest side.  The perimeter is 17 in.  Find the dimensions of the triangle.