The length of a sidewalk is 1 yard. 1517 yards of the sidewalk is fenced with colorful ribbons on the sides. 517 yards of one side of the sidewalk is fenced with blue ribbons and 317 yards is fenced with red ribbons. What length of green ribbon will be required to fence the remaining part of the sidewalk on both sides?