w, h , x, y = map(int, input().split())
area = w * h / 2
m = 0
if x * 2 == w and y * 2 == h:
    m = 1

print(area, m) w, h , x, y = map(int, input().split()) w map(int, input().split()) map int input().split() ().split () input split h x y area = w * h / 2 area w * h / 2 w * h w h 2 m = 0 m 0 if x * 2 == w and y * 2 == h:
    m = 1 x * 2 == w and y * 2 == h x * 2 == w x * 2 x 2 w y * 2 == h y * 2 y 2 h m = 1 m 1 print(area, m) print area m w, h , x, y = map(int, input().split()) map(int, input().split()) w m = 0 0 m area = w * h / 2 w * h / 2 area m = 1 1 m h , x, y = map(int, input().split()) map(int, input().split()) h x, y = map(int, input().split()) map(int, input().split()) x y = map(int, input().split()) map(int, input().split()) y
w, h , x, y = map(int, input().split())
area = w * h / 2
m = 0
if x * 2 == w and y * 2 == h:
    m = 1

print(area, m)