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

area = W*H/2
if  x==W/2 and y==H/2:
  print('{:.06f}'.format(area),"1")
else:
  print('{:.06f}'.format(area),"0") W,H,x,y = map(int,input().split()) W map(int,input().split()) map int input().split() ().split () input split H x y area = W*H/2 area W*H/2 W*H W H 2 if  x==W/2 and y==H/2:
  print('{:.06f}'.format(area),"1")
else:
  print('{:.06f}'.format(area),"0") x==W/2 and y==H/2 x==W/2 x W/2 W 2 y==H/2 y H/2 H 2 print('{:.06f}'.format(area),"1") print '{:.06f}'.format(area) '{:.06f}'.format '{:.06f}' format area "1" print('{:.06f}'.format(area),"0") print '{:.06f}'.format(area) '{:.06f}'.format '{:.06f}' format area "0" y = map(int,input().split()) map(int,input().split()) y W,H,x,y = map(int,input().split()) map(int,input().split()) W H,x,y = map(int,input().split()) map(int,input().split()) H x,y = map(int,input().split()) map(int,input().split()) x area = W*H/2 W*H/2 area
W,H,x,y = map(int,input().split())

area = W*H/2
if  x==W/2 and y==H/2:
  print('{:.06f}'.format(area),"1")
else:
  print('{:.06f}'.format(area),"0")