{"trustable":false,"sections":[{"title":"","value":{"format":"HTML","content":"\u003cp align\u003d\"JUSTIFY\"\u003e\r\n\t\u0026nbsp;\u003c/p\u003e\r\n\u003cp align\u003d\"JUSTIFY\"\u003e\r\n\tThere 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\r\n\u003cp align\u003d\"JUSTIFY\"\u003e\r\n\t\u0026nbsp;\u003c/p\u003e\r\n\u003cp align\u003d\"JUSTIFY\"\u003e\r\n\t\u003cb\u003eInput\u003c/b\u003e\u003c/p\u003e\r\n\u003cp align\u003d\"JUSTIFY\"\u003e\r\n\tInput 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\r\n\u003cp align\u003d\"JUSTIFY\"\u003e\r\n\t\u0026nbsp;\u003c/p\u003e\r\n\u003cp align\u003d\"JUSTIFY\"\u003e\r\n\t\u003cb\u003eOutput\u003c/b\u003e\u003c/p\u003e\r\n\u003cp align\u003d\"JUSTIFY\"\u003e\r\n\tWrite answer to the output.\u003c/p\u003e\r\n\u003cp align\u003d\"JUSTIFY\"\u003e\r\n\t\u0026nbsp;\u003c/p\u003e\r\n\u003cp align\u003d\"JUSTIFY\"\u003e\r\n\tSample Input\u003c/p\u003e\r\n\u003cpre\u003e\r\n1 1 -3\r\n0 4\r\n0 4\r\n\u003c/pre\u003e\r\n\u003cp align\u003d\"JUSTIFY\"\u003e\r\n\t\u0026nbsp;\u003c/p\u003e\r\n\u003cp align\u003d\"JUSTIFY\"\u003e\r\n\tSample Output\u003c/p\u003e\r\n\u003cpre\u003e\r\n4\r\n\u003c/pre\u003e"}}]}