import sys
w,h,x,y = map(float,input().split())
S = w*h/2
if x*2== w:
  if y*2 == h:
    print(f'{S:.08f}' + " 1")
    
    sys.exit()
print(f'{S:.08f}' + " 0") import sys sys w,h,x,y = map(float,input().split()) w map(float,input().split()) map float input().split() ().split () input split h x y S = w*h/2 S w*h/2 w*h w h 2 if x*2== w:
  if y*2 == h:
    print(f'{S:.08f}' + " 1")
    
    sys.exit() x*2== w x*2 x 2 w if y*2 == h:
    print(f'{S:.08f}' + " 1")
    
    sys.exit() y*2 == h y*2 y 2 h print(f'{S:.08f}' + " 1") print f'{S:.08f}' + " 1" f'{S:.08f}' " 1" sys.exit() sys.exit sys exit print(f'{S:.08f}' + " 0") print f'{S:.08f}' + " 0" f'{S:.08f}' " 0" x,y = map(float,input().split()) map(float,input().split()) x S = w*h/2 w*h/2 S y = map(float,input().split()) map(float,input().split()) y w,h,x,y = map(float,input().split()) map(float,input().split()) w h,x,y = map(float,input().split()) map(float,input().split()) h
import sys
w,h,x,y = map(float,input().split())
S = w*h/2
if x*2== w:
  if y*2 == h:
    print(f'{S:.08f}' + " 1")
    
    sys.exit()
print(f'{S:.08f}' + " 0")