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