W,H,x,y = (int(x) for x in input().split())
MAX = (W*H)/2
if 2*x==W and 2*y==H:
    print('{} 1'.format(MAX))
else:
    print('{} 0'.format(MAX)) int(x) for x in input().split() for x in input().split() x input().split() ().split () input split for x in input().split() int(x) int x W,H,x,y = (int(x) for x in input().split()) W (int(x) for x in input().split()) H x y MAX = (W*H)/2 MAX (W*H)/2 W*H W H 2 if 2*x==W and 2*y==H:
    print('{} 1'.format(MAX))
else:
    print('{} 0'.format(MAX)) 2*x==W and 2*y==H 2*x==W 2*x 2 x W 2*y==H 2*y 2 y H print('{} 1'.format(MAX)) print '{} 1'.format(MAX) '{} 1'.format '{} 1' format MAX print('{} 0'.format(MAX)) print '{} 0'.format(MAX) '{} 0'.format '{} 0' format MAX x,y = (int(x) for x in input().split()) (int(x) for x in input().split()) x y = (int(x) for x in input().split()) (int(x) for x in input().split()) y MAX = (W*H)/2 (W*H)/2 MAX H,x,y = (int(x) for x in input().split()) (int(x) for x in input().split()) H W,H,x,y = (int(x) for x in input().split()) (int(x) for x in input().split()) W
W,H,x,y = (int(x) for x in input().split())
MAX = (W*H)/2
if 2*x==W and 2*y==H:
    print('{} 1'.format(MAX))
else:
    print('{} 0'.format(MAX))