The endpoints of the segment have integer coordinates. Count the number of points on the segment with integer coordinates.
Four integers represent the coordinates of the endpoints of the segment. The coordinate values do not exceed in absolute value.
Print the number of points on the segment with integer coordinates.