{"trustable":true,"sections":[{"title":"","value":{"format":"HTML","content":"\u003cp align\u003d\"JUSTIFY\"\u003e \u003c/p\u003e\u003cp align\u003d\"JUSTIFY\"\u003e There is an equation ax + by + c \u003d 0. Given a,b,c,x1,x2,y1,y2 you must determine, how many integer roots of this equation are satisfy to the following conditions : x1\u0026lt;\u003dx\u0026lt;\u003dx2, \u0026nbsp; y1\u0026lt;\u003dy\u0026lt;\u003dy2. Integer root of this equation is a pair of integer numbers (x,y). \u003c/p\u003e \u003cp align\u003d\"JUSTIFY\"\u003e \u003cb\u003e\u003c/b\u003e\u003c/p\u003e\u003cp align\u003d\"JUSTIFY\"\u003eInput\u003c/p\u003e \u003cp align\u003d\"JUSTIFY\"\u003e Input contains integer numbers a,b,c,x1,x2,y1,y2 delimited by spaces and line breaks. All numbers are not greater than 10\u003csup\u003e8\u003c/sup\u003e by absolute value. \u003c/p\u003e \u003cp align\u003d\"JUSTIFY\"\u003e \u003cb\u003e\u003c/b\u003e\u003c/p\u003e\u003cp align\u003d\"JUSTIFY\"\u003eOutput\u003c/p\u003e \u003cp align\u003d\"JUSTIFY\"\u003e Write answer to the output. \u003c/p\u003e \u003cp align\u003d\"JUSTIFY\"\u003e \u003c/p\u003e\u003cp align\u003d\"JUSTIFY\"\u003eSample Input\u003c/p\u003e \u003cfont face\u003d\"Courier New\"\u003e \u003cpre\u003e1 1 -3\n0 4\n0 4\n\u003c/pre\u003e \u003cp align\u003d\"JUSTIFY\"\u003e \u003c/p\u003e\u003c/font\u003e \u003cp align\u003d\"JUSTIFY\"\u003eSample Output\u003c/p\u003e \u003cfont face\u003d\"Courier New\"\u003e \u003cpre\u003e4\n\u003c/pre\u003e \u003c/font\u003e "}}]}