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

quad = [[0,0],[W,0],[W,H],[0,H]] 
S = (quad[1][0]-quad[0][1]) * (quad[2][1]-quad[0][1])
ans = 0

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

print(S/2 , ans) W,H,x,y = map(int, input().split()) W map(int, input().split()) map int input().split() ().split () input split H x y quad = [[0,0],[W,0],[W,H],[0,H]] quad [[0,0],[W,0],[W,H],[0,H]] [0,0] 0 0 [W,0] W 0 [W,H] W H [0,H] 0 H S = (quad[1][0]-quad[0][1]) * (quad[2][1]-quad[0][1]) S (quad[1][0]-quad[0][1]) * (quad[2][1]-quad[0][1]) quad[1][0]-quad[0][1] quad[1][0] [1] quad 1 0 quad[0][1] [0] quad 0 1 quad[2][1]-quad[0][1] quad[2][1] [2] quad 2 1 quad[0][1] [0] quad 0 1 ans = 0 ans 0 if W/2 == x and H/2 == y:
    ans = 1 W/2 == x and H/2 == y W/2 == x W/2 W 2 x H/2 == y H/2 H 2 y ans = 1 ans 1 print(S/2 , ans) print S/2 S 2 ans S = (quad[1][0]-quad[0][1]) * (quad[2][1]-quad[0][1]) (quad[1][0]-quad[0][1]) * (quad[2][1]-quad[0][1]) S ans = 1 1 ans ans = 0 0 ans y = map(int, input().split()) map(int, input().split()) y quad = [[0,0],[W,0],[W,H],[0,H]] [[0,0],[W,0],[W,H],[0,H]] quad 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
W,H,x,y = map(int, input().split())

quad = [[0,0],[W,0],[W,H],[0,H]] 
S = (quad[1][0]-quad[0][1]) * (quad[2][1]-quad[0][1])
ans = 0

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

print(S/2 , ans)
