W,H,x,y = map(int,input().split())


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


if x != 0 and y != 0:
    if W/x == 2 and H/y ==2:
        print(W*H/2,'1')
    else:
        print(W*H/2,'0')
else:
    print(W*H/2,'0')