w,h,x,y = map(int,input().split())

if w/2 == x and h/2 == y:
    print(w*h/2,end=' ')
    print(1)
else:
    print(w*h/2,end=' ')
    print(0) w,h,x,y = map(int,input().split()) w map(int,input().split()) map int input().split() ().split () input split h x y if w/2 == x and h/2 == y:
    print(w*h/2,end=' ')
    print(1)
else:
    print(w*h/2,end=' ')
    print(0) w/2 == x and h/2 == y w/2 == x w/2 w 2 x h/2 == y h/2 h 2 y print(w*h/2,end=' ') print w*h/2 w*h w h 2 end=' ' end ' ' print(1) print 1 print(w*h/2,end=' ') print w*h/2 w*h w h 2 end=' ' end ' ' print(0) print 0 w,h,x,y = map(int,input().split()) map(int,input().split()) w 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())

if w/2 == x and h/2 == y:
    print(w*h/2,end=' ')
    print(1)
else:
    print(w*h/2,end=' ')
    print(0)
