from math import* t=atan2 while 1:a,b,c,d,e,f,g,h=map(int,raw_input().split());p=t(b-f,a-e)-t(d-f,c-e);print+(0>sin(p)*sin(p-t(b-h,a-g)+t(d-h,c-g)))
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page