W,H,w,h = map(float, input().split())
ans =0
if w+w ==W and h+h==H:
    ans =1
print('{:9f} {}'.format(W*H/2, ans)) W,H,w,h = map(float, input().split()) W map(float, input().split()) map float input().split() ().split () input split H w h ans =0 ans 0 if w+w ==W and h+h==H:
    ans =1 w+w ==W and h+h==H w+w ==W w+w w w W h+h==H h+h h h H ans =1 ans 1 print('{:9f} {}'.format(W*H/2, ans)) print '{:9f} {}'.format(W*H/2, ans) '{:9f} {}'.format '{:9f} {}' format W*H/2 W*H W H 2 ans H,w,h = map(float, input().split()) map(float, input().split()) H ans =1 1 ans h = map(float, input().split()) map(float, input().split()) h w,h = map(float, input().split()) map(float, input().split()) w ans =0 0 ans W,H,w,h = map(float, input().split()) map(float, input().split()) W
W,H,w,h = map(float, input().split())
ans =0
if w+w ==W and h+h==H:
    ans =1
print('{:9f} {}'.format(W*H/2, ans))