#include using namespace std ;
#define For(i , n) for(int i = 0 ; i < (n) ; ++i)
#define Until(f) while(! (f))
#define Sz(x) (int)((x).size())
typedef long long lint ;
const double eps = 1e-8 ;
inline int sgn(double x) {return (x > eps) - (x < -eps) ;}
struct Pnt {
double x , y ;
Pnt (double x_ = 0.0 , double y_ = 0.0): x(x_) , y(y_) {}
Pnt (const Pnt & s , const Pnt & e): x(e.x - s.x) , y(e.y - s.y) {}
Pnt (const Pnt & p): x(p.x) , y(p.y) {}
double operator * (const Pnt & b) {//叉积
return x * b.y - y * b.x ;
}
bool in(){
return scanf("%lf%lf" , &x , &y) == 2 ;
}
} ;
typedef Pnt Vec ;
int test (const Pnt & p , const Pnt & s , const Pnt & e) {
return sgn(Vec (s , e) * Vec (s , p)) ;
}
//返回 1 说明 点p 在 直线s,e 的逆时针方向
//返回 -1 说明 点p 在 直线s,e 的顺时针方向
//返回 0 说明 点p 在 直线s,e 上
int main(){
//FIN
Pnt P , S , E ;
while(P.in() && S.in() && E.in() ){
int rst = test(P , S , E) ;
printf("%d\n" , rst) ;
}
ERR("End")
return 0 ;
}