Problem:
 Score : 300 points    Problem Statement There is a rectangle in a coordinate plane. The coordinates of the four vertices are (0,0) , (W,0) , (W,H) , and (0,H) .
You are given a point (x,y) which is within the rectangle or on its border. We will draw a straight line passing through (x,y) to cut the rectangle into two parts. Find the maximum possible area of the part whose area is not larger than that of the other. Additionally, determine if there are multiple ways to cut the rectangle and achieve that maximum.      Constraints  1 \leq W,H \leq 10^9  0\leq x\leq W  0\leq y\leq H  All values in input are integers.         Input Input is given from Standard Input in the following format:  W  H  x  y       Output Print the maximum possible area of the part whose area is not larger than that of the other, followed by 1 if there are multiple ways to cut the rectangle and achieve that maximum, and 0 otherwise.  The area printed will be judged correct when its absolute or relative error is at most 10^{-9} .        Sample Input 1 2 3 1 2      Sample Output 1 3.000000 0  The line x=1 gives the optimal cut, and no other line does.       Sample Input 2 2 2 1 1      Sample Output 2 2.000000 1

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

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

Solution (Python):
a=input().split()
a=[int(i) for i in a]

W=a[0]
H=a[1]
x=a[2]
y=a[3]

max=round(W*H*0.5,9)
print(max)

if x==W/2 and y==H/2:
    print("1")
else:
    print("0")

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

Solution (Python):
w, h, x, y = [int(z) for z in input().split()]

flag = 0
if w == x * 2 and h == y * 2: 
  flag = 1
  
print(str(w * h / 2) + " " + str(flag))

Solution (Python):

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

check = 0
if W/2 == x and H/2 == y:
    check = 1

print(W*H/2, check)

Solution (Python):
W, H , x, y = map(float, input().split())
ans = W*H/2.
if y  == H/2 and x == W/2:
  print(str(ans) + ' 1')
else:
  print(str(ans) + ' 0')

Solution (Python):
w, h, x, y = map(int, input().split())
max = w * h / 2
if w * h == 0:
    j = 1
elif x * 2 == w and y * 2 == h:
    j = 1
else:
    j = 0
print(max, j)

Solution (Python):






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





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

Solution (Python):
W, H, x, y = list(map(int,input().split()))

max = W*H/2

if W*H==0:
    judge=1
elif x*2==W and y*2==H:
    judge=1
else:
    judge=0

print(max,judge)

Solution (Python):
W, H, x, y = list(map(int, input().split()))
print(W * H / 2, end=" ")
if W % 2 == 0 and H % 2 == 0 and x == W // 2 and y == H // 2:
    print(1)
else:
    print(0)

Solution (Python):
w, h, x, y = map(int, input().split())
max = w*h / 2
n = 0
if (x*2, y*2) == (w, h):
    n = 1
print(max, n)

Solution (Python):
W,H,x,y=list(map(float,input().split()))
if x==W/2 and y==H/2:
  print("{:.6f} 1".format(W*H/2))
else:
  print("{:.6f} 0".format(W*H/2))

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

s = (W*H)/2
n = 0
if (2*x,2*y) == (W,H):
    n = 1
print(s, n)

Solution (Python):
def main():
    W, H, x, y = map(int, input().split())
    area = W * H / 2
    flag = 1 if x == W / 2 and y == H / 2 else 0
    print(area, flag)

if __name__ == '__main__':
    main()

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

Solution (Python):
W, H, x, y = map(int, input().split())
r = W * H / 2
if x == W/2 and y == H/2:
  print(r, "1")
else:
  print(r, "0")

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

max_S = W * H / 2
hukusu = 1 if x == W / 2 and y == H / 2 else 0

print(max_S, hukusu)

Solution (Python):
w,h,x,y=map(int,input().split())
 
if x==w/2 and y==h/2:
    ans=1
else:
    ans=0
 
print(w*h/2,ans)

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

print(m,ans)

Solution (Python):
w, h, x, y = map(int, input().split())

area = w * h / 2
is_point_center =  w/2 == x and h/2 == y
is_multiple = "1" if is_point_center else "0"

print(area, is_multiple)

Solution (Python):
w,h,x,y = map(int,input().split())
ans1 = w*h/2
if x*2==w and y*2==h:
    ans2=1
else:
    ans2=0
print(ans1,ans2)

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

Solution (Python):
a, b, c, d = map(int, input().split())
if c*2 == a and d*2 == b:
  ans = 1
else:
  ans = 0
print(a*b/2, ans)

Solution (Python):
def is_eql(a, b):
    return abs(a - b) < 1e-9

W, H, x, y  = [int(i) for i in input().split()]

S = W * H / 2.
ans = 1 if is_eql(W/2., x) and is_eql(H/2., y) else 0

print("{} {}".format(S, ans))

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

if x+x == W and y+y == H:
    print("%.6f %d" % ((W*H)/2,1))
else:
    print("%.6f %d" % ((W*H)/2,0))

Solution (Python):
W,H,x,y = map(int,input().split())
if x*2==W and y*2==H:
    print(W*H/2,1)
else:
    print(W*H/2,0)

Solution (Python):
s = input().split(" ");
w = int(s[0]);
h = int(s[1]);
x = int(s[2]);
y = int(s[3]);

if x == w/2 and y == h/2 :
	bunkatu = 1;
else :
	bunkatu = 0;

print(w*h/2,bunkatu)

Solution (Python):
w, h, x, y = map(int, input().split())
s = w * h / 2
if x == w / 2 and y == h / 2:
    print(s, 1)
else:
    print(s, 0)

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

half_area = W * H / 2

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

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

half_area = W * H / 2

if x == W/2 and y == H/2:
    print("{:.6f}".format(half_area), 1)
else:
    print("{:.6f}".format(half_area), 0)

Solution (Python):
w,h,x,y=map(int,input().split())
s=w*h/2
if x==w/2 and y==h/2:
  print(s,1)
else:
  print(s,0)

Solution (Python):
W, H, x, y =map(int,input().split())
S = W * H / 2.0
m = 0
if x * 2 == W and y * 2 == H:
  m = 1
print(S,m)

Solution (Python):
W,H,x,y = map(int, input().split())
out1 = W*H/2
out2 = 0
if (x,y) == (W/2,H/2):
  out2 = 1
print(out1, out2)

Solution (Python):
W,H,x,y=map(float,input().split())
j=0
if x==W/2 and y==H/2:
    print(W*H/2,1)
else:
    print(W*H/2,0)

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

g = (W/2,H/2)

if((x,y)==g):
    ans = W*H/2
    sign = 1
else:
    ans = W*H/2
    sign = 0
    
print(str(ans) + " " + str(sign))

Solution (Python):
def main():
    W, H, x, y = map(int, input().split())
    S_small = W*H/2
    x_symme = W - x
    y_symme = H - y
    if (x == x_symme) and (y == y_symme): ans2 = 1
    else: ans2 = 0
    print(S_small, ans2)
    
main()

Solution (Python):
w, h, x, y = map(int, input().split())

area = w * h / 2
center = "1" if w / 2 == x and h / 2 == y else "0"

print(str(area) + " " + center)

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

S = float(W*H/2.0)
d = 0
if H/2 == y and W/2 == x:
        d = 1
print(str(S) + " " + str(d))

Solution (Python):
a, b, c, d = map(int, input().split())
if a / 2 == c and b / 2 == d:
    print(str(a * b / 2) + " " + "1")
else:
    print(str(a * b / 2) + " " + "0")

Solution (Python):
W, H, x, y = map(int, input().split())
ans1 = W * H / 2
ans2 = 1 if W % 2 == 0 and H % 2 == 0 and W//2 == x and H//2 == y else 0
print(ans1, ans2)

Solution (Python):

w, h, x, y = map(int, input().split())
print(w * h / 2, int(2 * x == w and 2 * y == h))

Solution (Python):
w, h, x, y = map(int, input().split())

if w == x * 2 and h == y * 2:
    print((w * h / 2), 1)
else:
    print((w * h / 2), 0)

Solution (Python):
W, H, x, y = map(float, input().split())

max_area = W*H/2.

if x == W/2. and y == H/2.:
	ans = 1
else:
    ans = 0

print(max_area, ans)

Solution (Python):

W, H, x, y = map(int, input().split())
S = W*H/2
ans = '0'
if W/2 == x and H/2 == y:
    ans = '1'

print("{} {}".format(S, ans))

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

print(W*H/2,1*(W/2==x and H/2==y))

Solution (Python):
w, h, x, y = map(int, input().split())

flag = 0
if x == w / 2 and y == h / 2:
    flag = 1

print(w * h / 2, flag)

Solution (Python):
W, H, x, y = map(int, input().split())
way = 0

if W / 2 == x and H / 2 == y: way += 1

print(W * H / 2, way)

Solution (Python):
w,h,x,y = map(int,input().split())

area = w*h/2

judge = 0

if w == x*2 and h == y*2:
  judge = 1
 

print(area,judge)

Solution (Python):
W,H,x,y=map(int,input().split())
area=W*H/2
able=0
if W/2==x and H/2==y:
    able=1
    
print(str(area)+" "+str(able))

Solution (Python):
W,H,x,y=(int(x) for x in input().split())
S=W*H/2
c=1 if (x*2==W and y*2==H) else 0
print(str(S)+' '+str(c))

Solution (Python):
W,H,x,y=map(int,input().split());print(W*H/2,1*(W/2==x and H/2==y))

Solution (Python):
import logging

logging.basicConfig(level=logging.INFO, format="%(message)s")
logging.disable(logging.CRITICAL)

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

max_menseki = float(W) * float(H) / 2.0
if W / 2 == x and H / 2 == y:
    print("{:f}".format(max_menseki) + " " + str(1))
else:
    print("{:f}".format(max_menseki) + " " + str(0))

Solution (Python):
w, h, x, y = map(int, input().split())
ans = 1 if w/2 == x and h/2 == y else 0
print(w*h/2, ans)

Solution (Python):
W,H,x,y = map(int,input().split(" "))

isMany = 0


c_x = W/2.0
c_y = H/2.0

if(x == c_x and y == c_y):
    isMany = 1


print((W*H/2.0) ,isMany)

Solution (Python):
W, H, x, y = [int(x) for x in input().split()]

flag = False
if x * 2 == W and y * 2 == H:
	flag = True

print(W * H / 2,end=' ')
if flag:
	print(1)
else:
	print(0)

Solution (Python):
W,H,x,y = map(int, input().split())
area=W*H/2
if x==W/2 and y==H/2:
    print(area,"1")
else:
    print(area,"0")

Solution (Python):
hantei=-1
ans=-1

w,h,x,y=map(int,input().split())
ans=w*h/2
if w/2==x and h/2==y:
    hantei=1
else:
    hantei=0
print("{0} {1}".format(ans,hantei))

Solution (Python):
import sys

input = sys.stdin.readline

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

Solution (Python):
W, H, x, y = map(int, input().split())
if (x, y) == (W/2, H/2):
  print(W*H/2, '1')
else:
  print(W*H/2, '0')

Solution (Python):



def solv(w, h, x, y):
    ha = w * h / 2
    dw = abs(w/2-x)
    dh = abs(h/2-y)
    if dw == 0 and dh == 0:
        return (ha, 1)
    else:
        return (ha, 0)


if __name__ == '__main__':

    w, h, x, y = map(int, input().split())

    ans = solv(w, h, x, y)

    print(ans[0], ans[1])

Solution (Python):
a = input().split()
W = int(a[0])
H = int(a[1])
x = int(a[2])
y = int(a[3])
if (x == W/2 and y != H/2) or (x != W/2 and y == H/2) or (x != W/2 and y != H/2):
  print(H*W/2,0)
else:
  print(H*W/2,1)

Solution (Python):
w,h,x,y = map(int, input().split())

print(w * h /2, int(w == 2 *x and h == 2*y))

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

Solution (Python):
W,H,x,y=map(int,input().split())
ways=1 if (W/2 == x) and (H/2 == y) else 0
print(W*H/2,ways)

Solution (Python):
w, h, x, y = list(map(int, input().split()))
a = w * h / 2.0
if w & 1 == 0 and h & 1 == 0 and x == w // 2 and y == h // 2:
  b = 1
else:
  b = 0
print("%.6f %d" % (a, b))

Solution (Python):
w, h, x, y = map(int, input().split())

mm = w*h

min = mm/2
print(min)
if x == w/2 and y == h/2:
    print("1")
else:
    print("0")

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

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

Solution (Python):
W,H,x,y = map(int,input().split())
s = W*H/2
print('{:.10f}'.format(s))
if x == W/2 and y == H/2:
  print(1)
else:
  print(0)

Solution (Python):
w,h,x,y = map(int,input().split())
ans = w*h/2
mod = 1 if 2*x==w and 2*y==h else 0
print('{} {}'.format(ans,mod))

Solution (Python):
W,H,x,y=map(int,input().split())
area=W*H/2
able=0
if W/2==x and H/2==y:
    able=1
    
print(str(area)+" "+str(able))

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

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

Solution (Python):
import sys
input = sys.stdin.readline

def main():
    s = list(map(int,input().split()))

    if (s[0] / 2.0 == s[2]) and (s[1] / 2.0 == s[3]):
        print(s[0] * s[1] / 2.0, 1)
    else:
        print(s[0] * s[1] / 2.0, 0)

if __name__ == '__main__':
    main()

Solution (Python):
w, h, x, y = map(int, input().split())
s = w * h
if x == w/2 and y == h/2:
    print(s/2, 1)
else:
    print(s/2, 0)

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

print("%f" % (W*H/2))
if x+x == W and y+y == H:
    print(1)
else:
    print(0)

Solution (Python):



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

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

if __name__ == '__main__':
    main()

Solution (Python):
W, H, x, y = list(map(int, input().split()))
ans = W * H / 2
if 2*x==W and 2*y==H:
    print(ans, 1)
else:
    print(ans, 0)

Solution (Python):
W,H,x,y = map(float,input().split())
S = W*H/2
flag = 0

if W / 2 == x and H / 2 == y:
    flag = 1

print(S,flag)

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

print (W*H/2,end=" ")

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

Solution (Python):
w,h,x,y = map(int, input().split())
if  w/2 == x and h/2 == y:
	ans = 1
else:
	ans = 0
print (w*h/2.0,ans)

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

is_existing=0
if x==W/2.0 and y==H/2.0:
    is_existing=1
print(W*H/2.0,is_existing)

Solution (Python):
W, H, x, y = map(int, input().split())
if W / 2 == x and H / 2 == y:
    print(W * H / 2, 1)
else:
    print(W * H / 2, 0)

Solution (Python):
W,H,x,y=map(int,input().split())
ans=W*H/2
if W/2==x and H/2==y:
  print(ans,'1')
else:
  print(ans,'0')

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

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

Solution (Python):
W, H, x, y = map(int, input().split())
bun = 0
if (W / 2) == x and (H / 2) == y:
	bun = 1

print(W*H/2.0, bun)

Solution (Python):
W, H, x, y = map(int, input().split())
area = W * H / 2
flag = int((x * 2 == W) and (y * 2 == H))
print(area, flag)

Solution (Python):
w, h, x, y = map(int, input().split())
ans = 0
num = w*h/2
if x==(w/2) and y == (h/2):
    ans = 1
print("{} {}".format(num, ans))

Solution (Python):
W, H, x, y = map(int, input().split())
ans = 0
if (2*x == W) and (2*y == H):
  ans = 1
print(W*H/2, ans)

Solution (Python):
W, H, x, y = [int(whxy) for whxy in input().split()]
S = W*H / 2
if x==W/2 and y==H/2:
  print(str(S) + " 1")
else:
  print(str(S) + " 0")

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

s_max = W * H / 2.0

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

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

s_max = W * H / 2.0
if x==W/2 and y==H/2:
  print(float(s_max), 1)
else:
  print(float(s_max), 0)

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

center_x,center_y = W/2 , H/2

s = W*H / 2

if (center_x == x and center_y == y) or (center_y == x and center_x == y):
    print("{} {}".format(s,1))
else:
    print("{} {}".format(s,0))

Solution (Python):
w,h,x,y = list(map(int,input().split(" ")))

sq = w*h/2
flag = 1 if w == x*2 and h == y*2 else 0

print(sq,flag)

Solution (Python):
i = list(map(int,input().split()))
w = i[0]
h = i[1]
x = i[2]
y = i[3]

m = (w*h)/2

if (2*x == w) and (2*y == h):
  s = 1
else:
  s = 0
  

print("{:.9}".format(m));print(s)

Solution (Python):


[W, H, x, y] = [int(i) for i in input().split()]

area = W * H
half_area = area / 2

if x == W/2 and y == H/2:
    method_number = 1
else:
    method_number = 0

print("{} {}".format(half_area, method_number))

Solution (Python):
W,H,x,y = input().split()
W =float(W)
H = float(H)
x = float(x)
y = float(y)
sq = W*H/2
if x == W/2 and y == H/2:
  print("{} 1".format(sq))
else:
  print("{} 0".format(sq))

Solution (Python):
W,H,x,y=map(int,input().split())
s=(1/2)*W*H
if x==W/2 and y==H/2:
  print(s,1)
else:
  print(s,0)

Solution (Python):


def solve():
    W, H, x, y = map(int, input().split())
    area = W * H / 2
    isMulti = 1 if x == W / 2 and y == H / 2 else 0
    print(area, isMulti)


if __name__ == '__main__':
    solve()

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

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

Solution (Python):
import sys
input = sys.stdin.readline
W, H, x, y = map(int, input().split())
S = W * H * 0.5
center = (W / 2, H / 2)
p = (x, y)
if (p == center):
  print(S, 1)
else:
  print(S, 0)

Solution (Python):
import sys
input = sys.stdin.readline
W, H, x, y = map(int, input().split())
S = W * H * 0.5
if (x != 0 and y/x == H/W and W % 2 == 0):
  print(S, 1)
else:
  print(S, 0)

Solution (Python):
inf = input().split()
W = int(inf[0])
H = int(inf[1])
x = int(inf[2])
y = int(inf[3])
 
s=W*H
if not s%2==0:
  s = s//2+0.5
else:
  s = s/2
st = "{0:.9f}".format(s)
if W%2==0 and H%2==0:
  gx = W//2
  gy = H//2
  if gx==x and gy==y:
    print(st, 1)
  else:
    print(st, 0)
else:
  print(st, 0)

Solution (Python):
W, H, x, y = map(int, input().split())
print(W*H/2, 1 if W/2 == x and H/2 == y else 0)

Solution (Python):
W,H,x,y=map(int, input().split())
print(W*H/2, 1 if ((W==2*x)and(H==2*y)) else 0)

Solution (Python):
W, H, x, y = map(int, input().split())
a = W * H / 2
print('{} {}'.format(a, 1 if W/2 == x and H/2 == y else 0))

Solution (Python):
a=list(map(int,input().split()))
ans=a[0]*a[1]/2
print(ans,1 if a[0]/2==a[2] and a[1]/2==a[3] else 0)

Solution (Python):
a=list(map(int,input().split()))
ans=str(a[0]*a[1]/2)

if a[0]/2==a[2] and a[1]/2==a[3]:
    print(ans+" 1")
else:print(ans+" 0")

Solution (Python):
a=list(map(int,input().split()))
print(a[0]*a[1]/2,1 if a[0]/2==a[2] and a[1]/2==a[3] else 0)

Solution (Python):
a,b,x,y=map(int,input().split())
print(a*b/2, int(x+x==a and y+y==b))

Solution (Python):
a=list(map(int,input().split()))
ans=str(a[0]*a[1]/2)

if a[0]/2==a[2]:
    if a[1]/2==a[3]:
        print(ans+" 1")
    else:print(ans+" 0")
else:print(ans+" 0")

Solution (Python):
a=list(map(float,input().split()))
ans=str(a[0]*a[1]/2)

if a[0]/2==a[2]:
    if a[1]/2==a[3]:
        print(ans+" 1")
    else:print(ans+" 0")
else:print(ans+" 0")

Solution (Python):
a = list(map(float,input().split()))
answer = float(a[0] * a[1]/2)
print(answer)
if a[2] == a[0]/2:
  if a[3] == a[1]/2:
    print(1)
  else:
    print(0)
else:
  print(0)

Solution (Python):
def load_input_int():
    return map(int, input().split())
    
W, H, x, y = load_input_int()

smaller_max_area = W * H / 2
pattern = 1 if x == W / 2 and y == H / 2 else 0

print(smaller_max_area, pattern)

Solution (Python):
W, H, x, y = map(int, input().split())
ans = W * H / 2
if W / 2 == x and H / 2 == y:
  ans2 = 1
else:
  ans2 = 0
print(ans, ans2, sep=' ')

Solution (Python):
W,H,x,y=map(int,raw_input().split())
if 2*x==W and 2*y==H:
    print("%f %d"%(W*H*0.5, 1))
else:
    print("%f %d"%(W*H*0.5, 0))

Solution (Python):
def rectangle_cutting(W: int, H: int, x: int, y: int)->tuple:
    area = W*H/2
    exists_some = 2*x == W and 2*y == H

    return area, exists_some


if __name__ == "__main__":
    W, H, x, y = map(int, input().split())

    area, exists_some = rectangle_cutting(W, H, x, y)
    print(area, 1 if exists_some else 0)

Solution (Python):
from sys import stdin

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

multiFlg=0
if 2*x == W and 2*y == H:
  multiFlg=1

print("{} {}".format(W*H/2, multiFlg))

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

m = W * H
half = m / 2.0

multi = '0'
if W == x*2 and H == y*2:
    multi = '1'

print(half, multi)

Solution (Python):
w,h,x,y = list(map(int,input().split()))
f=0
if x==float(w)/2 and y == float(h)/2:
    f=1
print("%f %d" %(float(w*h)/2,f))

Solution (Python):
import math
import copy
from operator import mul
from functools import reduce
from collections import defaultdict
from collections import Counter
from collections import deque

from itertools import product

from itertools import permutations

from itertools import combinations

from itertools import accumulate
from bisect import bisect_left, bisect_right





def inside(y, x, H, W):
    return 0 <= y < H and 0 <= x < W


dy = [0, -1, 0, 1]
dx = [1, 0, -1, 0]
 
def i_inpl(): return int(input())
def l_inpl(): return list(map(int, input().split()))
INF = float("inf")



W, H, x, y = l_inpl()

half = W * H / 2

if W == x*2 and H == y*2:
    ans = 1
else:
    ans = 0

print(half, ans)

Solution (Python):
W,H,x,y= list(map(int, input().split()))
S =W*H
min_S =S/2
if (W/2 == x) and (H/2==y):
    flag = 1
else:
    flag = 0
print(min_S,flag)

Solution (Python):
import sys

def input():
    return sys.stdin.readline().rstrip()

if __name__ == "__main__":
    W, H, x, y = map(int, input().split())

    maxarea = W * H / 2

    print("{:.6f} {}".format(maxarea, "1" if 2 * x == W and 2 * y == H else "0"))

Solution (Python):
W, H, x, y = map(int, input().split())
if x == W/2 and y == H/2:
  print(W*H/2, 1)
else:
  print(W*H/2, 0)

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

s = W*H/2
k = 0
if x == W/2 and y == H/2:
    k = 1
else:
    k = 0

print(str(s)+  str(' ') + str(k))

Solution (Python):
w, h, x, y = [int(i) for i in input().split(' ')]

m_x, m_y = w / 2, h / 2

print(w * h / 2, 1 if x == m_x and y == m_y else 0)

Solution (Python):
W,H,x,y=map(int,input().split())
print("{} ".format(W*H/2),end="")
if (W*y==H*x or y - H == -H/W*x) and (x,y) != (0,0) and (x,y) != (W,0) and (x,y) != (0,H) and (x,y) != (W,H) :
    print("{}".format(1))
else :
    print("{}".format(0))

Solution (Python):
W, H, x, y = map(float, input().split())

print('{} {}'.format(W*H/2, 1 if (x*2==W) & (y*2==H) else 0))

Solution (Python):
W, H, x, y = map(int, input().split())
if x == W / 2 and y == H / 2:
	print((W * H) / 2, 1)
else:
	print((W * H) / 2, 0)

Solution (Python):
W, H, x, y = map(int, input().split())
if x == W / 2 and y == H / 2:
	print((W * H) / 2, 1)
else:
	print((W * H) / 2, 0)

Solution (Python):
w, h, x, y = map(int, input().split())

s = w * h / 2
if (x * 2 == w) and (y * 2 == h):
    print(s, 1)
else:
    print(s, 0)

Solution (Python):
W, H, x, y = map(int, input().split())
S = H*W/2
div = 1 if 2*x==W and 2*y==H else 0
print(S, div)

Solution (Python):
_input = input()
W, H, x, y = tuple([int(a) for a in _input.split(' ')])

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

Solution (Python):
W, H, X, Y = map(float, input().split())
S = W * H /2
print(S, 1 if 2*X==W and 2*Y==H else 0)

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

ans = W*H/2
ans2 = int(2*x == W and 2*y == H)
print(ans,ans2)

Solution (Python):
w, h, x, y = map(int,input().split())
if w/2 == x and h/2 == y:
        max = (w*h)/2
        print("{} 1".format(max))
else:
        max = (w*h)/2
        print("{} 0".format(max))

Solution (Python):
w, h, x, y = map(int, input().split())

if x == 0 or x == w or y == 0 or y == h:
  print(w * h / 2, 0)
else:
  ans = 1 if min(x, w - x) * h == min(y, h - y) * w else 0
  print(w * h / 2, ans)

Solution (Python):
a, b, c, d = map(int, input().split())

if a/2 == c and b/2 == d:
  print(a*b/2, 1)
else:
  print(a*b/2, 0)

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

Solution (Python):
w, h, x, y = list(map(int, input().split(" ")))
area = (float(w) * float(h)) / 2
c_x = float(w) / 2
c_y = float(h) / 2
result = 1 if c_x == x and c_y == y else 0
print (str(area) + " " + str(result))

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

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

Solution (Python):
W,H,x,y=map(int,input().split())
if float(x)==W/2 and float(y)==H/2:
  print(W*H/2,1)
else:
  print(W*H/2,0)

Solution (Python):
w,h,x,y = map(int, input().split())
if w//2==x and h//2==y and w%2==0 and h%2==0:
	print(w*h/2., 1)
else:
	print(w*h/2., 0)

Solution (Python):
import re
import numpy as np
 
W, H, x, y = [int(i) for i  in re.split(" ", input())]
 
print(W * H / 2)
 
if x * 2 == W and y * 2 == H:
  print(1)
else:
  print(0)

Solution (Python):
Wid, Hi, x, y = list(map(int, input().split()))

print(Wid*Hi/2, end = " ")

if((Wid/2 == x) and (Hi/2 == y)):
	print(1)
	
else:
	print(0)

Solution (Python):
W, H, x, y = list(map(int, input().split()))

if W / 2 == x and H / 2 == y:
    print("{} 1".format(W * H / 2))
else:
    print("{} 0".format(W * H / 2))

Solution (Python):
w, h, x, y = map(int, input().split())

S = w * h / 2
if x == w / 2 and y == h / 2:
  flag = 1
else:
  flag = 0
  
print("{0} {1}".format(S, flag))

Solution (Python):
w,h,x,y = map(int,input().split())
a = 0
if w/2 == x and h/2 == y:
    a = 1
print("{} {}".format(w*h/2,a))

Solution (Python):
W,H,x,y = list(map(int, input().split()))


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

Solution (Python):


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

    S = W * H / 2
    if x == W / 2 and y == H / 2:
        N = 1
    else:
        N = 0
    print("{} {}".format(S, N))

if __name__ == '__main__':
    main()

Solution (Python):
w, h, x, y = [float(i) for i in input().split()]

ans = str(float((w * h) / 2))

if x == (w/2) and y == (h/2):
    ans2 = '1'
else:
    ans2 = '0'

print(ans, ans2)

Solution (Python):
w, h, x, y = map(int, input().split())

area = w * h / 2

flag = 0

if x == w/2 and y == h/2:
    flag = 1

print(area, flag)

Solution (Python):
W,H,x,y = [int(i) for i in input().split()]
flag=0
if W==x+x and H==y+y:
    flag=1



print(W*H/2,flag)

Solution (Python):
W,H,x,y = [int(i) for i in input().split()]
flag=0
if W==x*2 and H==y*2:
    flag=1



print(W*H/2,flag)

Solution (Python):
W,H,x,y = [int(i) for i in input().split()]
flag=0
if W==x+x and H==y+y:
    flag=1



print(W*H/2,flag)

Solution (Python):
import numpy as np
W,H,x,y = map(int,input().split())
s = W*H/2
flag = 0
if x==W/2 and y == H/2:
    flag = 1
print(s,flag)

Solution (Python):
W, H , x, y = map(int, input().split())
ans = W*H/2
num = 0
if x == W/2 and y == H/2:
    num = 1
print(ans, num)

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



ans = '{} {}'.format(
    W * H / 2,
    1 if x == W / 2 and y == H / 2 else
    0
)


print(ans)

Solution (Python):


import sys
import copy

sys.setrecursionlimit(1000000)





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

ans = (W * H) / 2.0

if W % 2 == 0 and H % 2 == 0 and W // 2 == x and H // 2 == y:
    print(ans, 1, sep=" ")
else:
    print(ans, 0, sep=" ")

Solution (Python):
W,H,x,y=map(int,input().split())
if x==float(W/2) and y==float(H/2):
    a=1
else:
    a=0
print(float(W*H/2),a)

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

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

Solution (Python):
W,H,x,y=input().split( )
answer=int(W)*int(H)/2
q=0
if int(x)*2==int(W) and int(y)*2==int(H):
    q=1
else:
    q=0

print(answer,q)

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

center_x = float(W)/2
center_y = float(H)/2

if center_x == float(x) and center_y == float(y):
    num = 1
else:
    num = 0

area = float(W)*float(H)/2
print(area, end=' ')
print(num)

Solution (Python):

w,h,x,y = [int(i) for i in input().split()]

if x == w/2 and y == h/2:
    print(w*h/2,1)
else:
    print(w*h/2,0)

Solution (Python):
W, H, x, y = map(int, input().split())
math = 0
num = 0

if x*2 == W and y*2 == H:
    num = 1

math = W * H / 2

print("{} {}".format(math, num))

Solution (Python):
W,H,x,y = [ int(it) for it in input().split() ]

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

Solution (Python):
w,h,x,y = map(int,input().split())
if 2*x == w and 2*y == h :
    a = 1
else :
    a = 0
print(w*h/2,a)

Solution (Python):
a,b,c,d = map(int,input().split())
flag = 0
if c == a/ 2 and d == b/2:
    flag = 1
print(a*b/2,flag)

Solution (Python):
W, H, x, y = map(int, input().split(" "))
area = W * H / 2
isMultiple = 1 if W/2 == x and H/2 == y else 0

print("{area} {isMultiple}".format(area=area, isMultiple=isMultiple))

Solution (Python):
a,b,x,y = map(float,input().split())
h = 1 if a/2==x and b/2==y else 0
print(str(a*b/2) + ' ' + str(h))

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

if x == W/2 and y == H/2:
    area = x*H
    print("{:.9f} {}".format(area,1))
else:
    area = W*H/2
    print("{:.9f} {}".format(area,0))

Solution (Python):
w, h, x, y = map(int, input().split())

print(w * h / 2, (1 if x == w / 2 and y == h / 2 else 0))

Solution (Python):
import math 
W,H,x,y=list(map(int,input().strip().split(' ')))
mid_x,mid_y=W/2,H/2

ans=W*H/2
okay=0
if (2*x==W and 2*y==H):
    okay=1
print(ans,okay)

Solution (Python):
w,h,x,y = map(int,input().split())
if x * 2 == w and y * 2 == h:
  ans = 1
else:
  ans = 0

print(w*h/2,ans)

Solution (Python):


if __name__ == '__main__':
    w, h, x, y = list(map(int, input().split()))

    s = float(w) * float(h) / 2

    og = 0
    if x + x == w and y + y == h:
        og = 1

    print('{:.6f} {}'.format(s, og))

Solution (Python):
width, height, x, y = map(float,input().split())

center_x = width/2
center_y = height/2

s = width * height/2
label = 0
if x == center_x and y == center_y:
    label = 1

print(s, label)

Solution (Python):
W,H,x,y=list(map(lambda x:int(x), input().split()))

area=(W*H)/2

center=0
if float(x)==W/2 and float(y)==H/2:
	center=1
print("%f %d"%(area,center))

Solution (Python):
INPUT = list(map(int, input().split()))

x = INPUT[2]
y = INPUT[3]

cx = INPUT[0]/2
cy = INPUT[1]/2

min_area = INPUT[0]*INPUT[1]/2

if x == cx and y == cy:
    print(min_area,1)
else:
    print(min_area,0)

Solution (Python):
W, H, x, y = map(float, input().split())
m1, m2 = float(W)/2, float(H)/2
count = 0
if x == m1 and y == m2:
  count = 1
print(W * H / 2, count)

Solution (Python):
W, H, x, y = map(int, input().split())
area = float(W) * float(H) / 2
way = 1 if W / 2 == x and H / 2 == y else 0
print(area, way)

Solution (Python):
W,H,x,y = map(int, input().split())
print(W*H/2)
if x == W/2 and y == H/2:
    print(1)
else:
    print(0)

Solution (Python):
w, h, x, y = map(int, input().split())

a = w * h / 2
if w / 2 == x and h / 2 == y:
    b = 1
else:
    b = 0

print(a, b)

Solution (Python):

w, h, x, y = map(int, input().split())
ans1 = (w * h) / 2.0
ans2 = 1 if w / 2 == x and h / 2 == y else 0
print(ans1, ans2)

Solution (Python):
w, h, x, y = list(map(int, input().split()))

if x*2 == w and y*2 == h:
	
	print("{} {}".format(w*h/2, 1))
else:
	print("{} {}".format(w*h/2, 0))

Solution (Python):
W,H,x,y = [int(i) for i in input().split()]

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

Solution (Python):

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



ans = '{} {}'.format(
    W * H / 2,
    1 if x == W / 2 and y == H / 2 else
    0
)


print(ans)

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

S = (W * H) / 2
m = 1 if W / 2 == x and H / 2 == y else 0
print("{0} {1}".format(S, m))

Solution (Python):
w, h, x, y = list(map(int, input().split()))

area = w*h/2
flag = 0
if x == w/2 and y == h/2:
    flag = 1


print(area, flag)

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


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

Solution (Python):
W,H,x,y = map(int,input().split())
if x == W/2 and y == H/2:
    print(W*H/2,1)
else:
    print(W*H/2,0)

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

max=W*H*1/2

centerx=1/2*W
centery=1/2*H

print(max)
if (x == centerx and y == centery):
    print("1")

else:
    print("0")

Solution (Python):
w,h,x,y=map(int,input().split())
ans=w*h/2
if w==x*2 and h==y*2:
        num=1
else:
        num=0
print(ans,num)