Turn Direction of Three Points

Given three points in order, print 1, -1, or 0 depending on whether the path turns left, turns right, or runs straight.

Easy2GeometryNo attempts yetTime limit1sMemory limit256 MB

Problem

Three points P1P_1, P2P_2, P3P_3 on the two dimensional coordinate plane are given. Write a program that decides which way the path from P1P_1 through P2P_2 to P3P_3 turns.

Input

The first line contains the coordinates x1x_1 and y1y_1 of P1P_1, the second line contains x2x_2 and y2y_2 of P2P_2, and the third line contains x3x_3 and y3y_3 of P3P_3, separated by a space.

All coordinates are integers with 10000x1,y1,x2,y2,x3,y310000-10000 \le x_1, y_1, x_2, y_2, x_3, y_3 \le 10000. The three points are distinct.

Output

Print 11 on the first line if the path joining P1P_1, P2P_2, P3P_3 in that order turns counterclockwise, 1-1 if it turns clockwise, and 00 if the three points lie on one straight line.