W,H,x,y=map(int,input().split())
S=(W*H)/2
T=1*((2*x,2*y)==(W,H))
print(S,T) W,H,x,y=map(int,input().split()) W map(int,input().split()) map int input().split() ().split () input split H x y S=(W*H)/2 S (W*H)/2 W*H W H 2 T=1*((2*x,2*y)==(W,H)) T 1*((2*x,2*y)==(W,H)) 1 (2*x,2*y)==(W,H) (2*x,2*y) 2*x 2 x 2*y 2 y (W,H) W H print(S,T) print S T T=1*((2*x,2*y)==(W,H)) 1*((2*x,2*y)==(W,H)) T S=(W*H)/2 (W*H)/2 S 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 W,H,x,y=map(int,input().split()) map(int,input().split()) W
W,H,x,y=map(int,input().split())
S=(W*H)/2
T=1*((2*x,2*y)==(W,H))
print(S,T)
