a=list(map(int,input().split()))

print((a[0]*a[1]/2,1 if a[0]/2==a[2] and a[1]/2==a[3] else 0))
a=list(map(int,input().split()))

ans=str(a[0]*a[1]/2)



if a[0]/2==a[2] and a[1]/2==a[3]:

    print((ans+" 1"))

else:print((ans+" 0"))
a = list(map(int, input().split()))
print((a[0] * a[1] / 2, 1 if a[0] / 2 == a[2] and a[1] / 2 == a[3] else 0))

a = list(map(int, input().split()))
ans = str(a[0] * a[1] / 2)
if a[0] / 2 == a[2] and a[1] / 2 == a[3]:
    print((ans + " 1"))
else:
    print((ans + " 0"))

-print((a[0] * a[1] / 2, 1 if a[0] / 2 == a[2] and a[1] / 2 == a[3] else 0)) +ans = str(a[0] * a[1] / 2) +if a[0] / 2 == a[2] and a[1] / 2 == a[3]: +    print((ans + " 1")) +else: +    print((ans + " 0"))