W,H,x,y = map(int,input().split())

_maxarea = W*H/2
mul_judge = 0

if x == W/2 and y == H/2:
    mul_judge = 1

print(str(_maxarea)+' '+str(mul_judge)) W,H,x,y = map(int,input().split()) W map(int,input().split()) map int input().split() ().split () input split H x y _maxarea = W*H/2 _maxarea W*H/2 W*H W H 2 mul_judge = 0 mul_judge 0 if x == W/2 and y == H/2:
    mul_judge = 1 x == W/2 and y == H/2 x == W/2 x W/2 W 2 y == H/2 y H/2 H 2 mul_judge = 1 mul_judge 1 print(str(_maxarea)+' '+str(mul_judge)) print str(_maxarea)+' '+str(mul_judge) str(_maxarea)+' ' str(_maxarea) str _maxarea ' ' str(mul_judge) str mul_judge W,H,x,y = map(int,input().split()) map(int,input().split()) W _maxarea = W*H/2 W*H/2 _maxarea x,y = map(int,input().split()) map(int,input().split()) x H,x,y = map(int,input().split()) map(int,input().split()) H y = map(int,input().split()) map(int,input().split()) y mul_judge = 1 1 mul_judge mul_judge = 0 0 mul_judge
W,H,x,y = map(int,input().split())

_maxarea = W*H/2
mul_judge = 0

if x == W/2 and y == H/2:
    mul_judge = 1

print(str(_maxarea)+' '+str(mul_judge))