#include using namespace std; #define rep(i,n) for(int i=0;i<(int)(n);i++) #define ALL(v) v.begin(),v.end() typedef long long ll; template using V=vector; template using VV=V>; using pdd=pair; const double EPS=1e-6; double f(pdd a,pdd b){ double x=a.first,y=a.second,z=b.first,w=b.second; return sqrt((x-z)*(x-z)+(y-w)*(y-w)); } double g(pdd a,pdd b,pdd c){ double p=b.first-a.first,q=b.second-a.second; double r=c.first-a.first,s=c.second-a.second; return abs(p*s-r*q); } int main(){ ios::sync_with_stdio(false); std::cin.tie(nullptr); V A(8); rep(i,8) cin>>A[i]; pdd a,b,c,d; a.first=A[0],a.second=A[1]; b.first=A[2],b.second=A[3]; c.first=A[4],c.second=A[5]; d.first=A[6],d.second=A[7]; if(g(a,b,c)