- CCW알고리즘이란?
import sys
input = sys.stdin.readline
x1, y1 = map(int, input().strip().split())
x2, y2 = map(int, input().strip().split())
x3, y3 = map(int, input().strip().split())
result = (x1 * y2 + x2 * y3 + x3 * y1) - (x2 * y1 + x3 * y2 + x1 * y3)
if result > 0:
print(1)
elif result == 0:
print(0)
else:
print(-1)