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