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