a,b,x,y = map(int,input().split())
print(a*b/2,int(x*2==a and y*2==b)) a,b,x,y = map(int,input().split()) a map(int,input().split()) map int input().split() ().split () input split b x y print(a*b/2,int(x*2==a and y*2==b)) print a*b/2 a*b a b 2 int(x*2==a and y*2==b) int x*2==a and y*2==b x*2==a x*2 x 2 a y*2==b y*2 y 2 b b,x,y = map(int,input().split()) map(int,input().split()) b y = map(int,input().split()) map(int,input().split()) y a,b,x,y = map(int,input().split()) map(int,input().split()) a x,y = map(int,input().split()) map(int,input().split()) x
a,b,x,y = map(int,input().split())
print(a*b/2,int(x*2==a and y*2==b))