T,Y,x,y=map(int,input().split())
a='0'
if T/2==x and Y/2==y:
  a='1'
print(T*Y/2,a) T,Y,x,y=map(int,input().split()) T map(int,input().split()) map int input().split() ().split () input split Y x y a='0' a '0' if T/2==x and Y/2==y:
  a='1' T/2==x and Y/2==y T/2==x T/2 T 2 x Y/2==y Y/2 Y 2 y a='1' a '1' print(T*Y/2,a) print T*Y/2 T*Y T Y 2 a y=map(int,input().split()) map(int,input().split()) y T,Y,x,y=map(int,input().split()) map(int,input().split()) T a='1' '1' a a='0' '0' a Y,x,y=map(int,input().split()) map(int,input().split()) Y x,y=map(int,input().split()) map(int,input().split()) x
T,Y,x,y=map(int,input().split())
a='0'
if T/2==x and Y/2==y:
  a='1'
print(T*Y/2,a)
