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())
if x == W/2 and y == H/2:
    a = 1
else:
    a = 0
print(W*H/2,a)

Solution (Python):
def main():

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

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


if __name__ == "__main__":
    main()

Solution (Python):

w,h,x,y = map(float,input().split())
half_w = w / 2
half_h = h / 2
max_area = w * h / 2
if x == half_w and y == half_h:
  print("{:.9f} 1".format(max_area))
  
else:
  print("{:.9f} 0".format(max_area))

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

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

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

S = W * H * 0.5

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

print(S,a)

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

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

s=0.5*w*h

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

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

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

Solution (Python):
T,Y,x,y=map(int,input().split())
a='0'
if T/2==x and Y/2==y:
  a='1'
print(T*Y/2,a)

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())
 
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())
print(W*H/2,int(2*x==W and 2*y==H))

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

s = 0;

if w==x*2 and h==y*2 : s += 1

print(h*w/2,s)

Solution (Python):
import sys
w,h,x,y = map(float,input().split())
S = w*h/2
if x*2== w:
  if y*2 == h:
    print(f'{S:.08f}' + " 1")
    
    sys.exit()
print(f'{S:.08f}' + " 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())
cnt = 0
if 2*x == W and 2*y == H:
    cnt = 1
print(W*H*0.5,cnt)

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

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

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

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

ans = w * h / 2

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

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):
import sys
sys.setrecursionlimit(10**9)

def mi(): return map(int,input().split())
def ii(): return int(input())
def isp(): return input().split()
def deb(text): print("-------\n{}\n-------".format(text))

INF=10**20
def main():
    W,H,x,y = mi()

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




if __name__ == "__main__":
    main()

Solution (Python):

"""
Created on Sat Sep 12 11:04:24 2020

@author: liang
"""

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

ans = [0] * 2

ans[0] = H*W/2
if x == W/2 and y == H/2:
    ans[1] = 1
else:
    ans[1] = 0
print(" ".join(map(str, ans)))

Solution (Python):
def main():
    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)


if __name__ == '__main__':
    main()

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

ans = [0, 1]

print(w*h/2, ans[w == 2 * x and h == 2 * y])

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):

import sys
import math
import decimal
import itertools
from itertools import product
from functools import reduce
INF = 10**19
def input():
    return sys.stdin.readline()[:-1]
def sort_zip(a:list, b:list):
    z = zip(a, b)
    z = sorted(z)
    a, b = zip(*z)
    a = list(a)
    b = list(b)
    return a, b

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 = map(int, input().split())
area = w * h
if x == w / 2 and y == h / 2:
    print(str(area / 2), "1")
else:
    print(str(area / 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())
a = 0
if(h==2*y and w ==2*x):
  a +=1
print(w*h/2,a)

Solution (Python):
import sys
from sys import exit
from collections import deque
from bisect import bisect_left, bisect_right, insort_left, insort_right 
from heapq import heapify, heappop, heappush
from math import *

sys.setrecursionlimit(10**6)
INF = 10**20
eps = 1.0e-20
MOD = 10**9+7

def lcm(x,y):
    return x*y//gcd(x,y)
def mint():
    return map(int,input().split())
def lint():
    return list(map(int,input().split()))
def ilint():
    return int(input()), list(map(int,input().split()))
def judge(x, l=['Yes', 'No']):
    print(l[0] if x else l[1])
def lprint(l, sep='\n'):
    for x in l:
        print(x, end=sep)
def ston(c, c0='a'):
    return ord(c)-ord(c0)
def ntos(x, c0='a'):
    return chr(x+ord(c0))

W,H,x,y = mint()
print(W*H/2, int((W,H)==(2*x,2*y)))

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

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):
a = list(map(int,input().split()))
S = a[0]*a[1]/2
if a[0]/2 == a[2] and a[1]/2 == a[3]:
  print(S,1)
else:
  print(S,0)

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

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

Solution (Python):
W,H,X,Y = map(int,input().split())
xwari = min(X*H,(W-X)*H)
ywari = min(Y*W,(H-Y)*W)
if W/2 == X and H/2 == Y:
    f = 1
else:
    f = 0
print(W*H/2, f)

Solution (Python):
W,H,X,Y = map(int,input().split())
xwari = min(X*H,(W-X)*H)
ywari = min(Y*W,(H-Y)*W)
if W == X*2 and H == Y*2:
    f = 1
else:
    f = 0
print(W*H/2, f)

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

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

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

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

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

_maxarea = W*H/2
mul_judge = 0

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

print(str(_maxarea)+' '+str(mul_judge))

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

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

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())
check = 0
if w == 2 * x and h == 2 * y:
    check = 1
print((w * h / 2), check)

Solution (Python):
from sys import exit
import math
import collections
ii = lambda : int(input())
mi = lambda : map(int,input().split())
li = lambda : list(map(int,input().split()))

w,h,x,y = mi()
ans = w * h / 2
check = 0
if x == w / 2 and y == h / 2:
    check = 1

print('{} {}'.format(ans,check))

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())
print(W * H / 2, int(W == 2 * x and H == 2 * y))

Solution (Python):



from fractions import gcd
from itertools import combinations,permutations,accumulate, product 

from collections import deque,defaultdict,Counter
import decimal
import re
import math
import bisect














import sys
sys.setrecursionlimit(10000000)
mod = 10**9 + 7


from sys import stdin
readline = stdin.readline
def readInts():
  return list(map(int,readline().split()))
def readTuples():
    return tuple(map(int,readline().split()))
def I():
  return int(readline())
w,h,x,y = readInts()
w = float(w)
h = float(h)
area = (w*h)/2 

result = 0
if (x+x) == w and (y+y) == h:
    
    result = 1
print(area,result)

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

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

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

Solution (Python):
def LI():
    return list(map(int, input().split()))


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

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

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

print((w * h) / 2, pat)

Solution (Python):

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

if __name__ == '__main__':
    input = sys.stdin.readline
    W, H, x, y = map(int, input().split())
    main(W, H, x, y)

Solution (Python):
W,H,x,y = map(int,input().split())
S = (W*H)/2
if 2*x==W and 2*y==H:
    flag = 1
else:
    flag = 0
print(S,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):
W,H,x,y = map(int,input().split())
ans1,ans2 = W*H/2,0
if 2*x == W and 2*y == H:
    ans2 = 1
print(ans1,ans2)

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

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(int,input().split())
S = W*H


distx = abs(W/2 - x)
disty = abs(H/2 - y)

if distx == disty == 0:
    ans = (S/2,1)
else:
    ans = (S/2,0)
print(*ans)

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())
u=w*h/2
if w==2*x and h==2*y:
    w=1
else :
    w=0
print(u,w)

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 = H*W/2
res = 0
if x*2 == W and y*2 == H:
  res = 1
print(S,res)

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

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

print(S,j)

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

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

ans = W * H
ans = float(float(ans) / 2.0)
ans2 = 0
if x == float(float(W) / 2) and y == float(float(H) / 2):
    ans2 = 1

print(str(ans) + " " + str(ans2))

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

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

Solution (Python):
w, h, x, y = map(int, input().split())
ans = (w * h) / 2
print(ans)
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, end=' ')
if x*2 == w and y*2 == h:
    print(1)
else:
    print(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())
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())
str1 = f'{w * h / 2:.09f}'
str2 = '1' if w == x * 2 and h == y * 2 else '0'
print(' '.join([str1,str2]))

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

if __name__ == '__main__':
    solve()

Solution (Python):
W,H,X,Y = map(int,input().split())

a = W*H//2
if W*H%2 == 1:
  a = str(a)+".5"
b = int(W==X*2 and H==Y*2)
print(a,b)

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

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

print(W*H/2, a)

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):
'''
Created on 2020/08/29

@author: harurun
'''
def main():
  import sys
  pin=sys.stdin.readline
  pout=sys.stdout.write
  perr=sys.stderr.write
  
  W,H,x,y=map(int,pin().split())
  ans=W*H/2
  pout(f"{ans} ")
  if W-x==x and H-y==y:
    print(1)
  else:
    print(0)
  return 
main()

Solution (Python):


import sys



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


def input_int():
    return int(input())


def input_int_list():
    return [int(i) for i in input().split()]


def main():
    w, h, x, y = input_int_list()
    area = (w * h) / 2
    bl = (w == 2 * x and h == 2 * y)
    print(area, 1 if bl else 0)
    return


if __name__ == "__main__":
    main()

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

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())
print(W*H/2,1 if int(2*x==W and 2*y==H) else 0)

Solution (Python):
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)

Solution (Python):
W, H, x, y = map(int, input().split())
S = W * H / 2
if W == 2 * x and H == 2 * y:
  print(str(S) + " 1")
else:
  print(str(S) + " 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):
import collections
W,H,x,y = map(int,input().split())

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

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

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

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 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())
if 2*x==w and 2*y==h:
  bun=1
else:
  bun=0

area=w*h/2

print(area,bun)

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

Solution (Python):
import sys
def MI(): return map(int,sys.stdin.readline().rstrip().split())

W,H,x,y = MI()



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

Solution (Python):
import sys

sys.setrecursionlimit(10**7)
def I(): return int(sys.stdin.readline().rstrip())
def MI(): return map(int,sys.stdin.readline().rstrip().split())
def LI(): return list(map(int,sys.stdin.readline().rstrip().split()))  
def LI2(): return list(map(int,sys.stdin.readline().rstrip()))  
def S(): return sys.stdin.readline().rstrip()
def LS(): return list(sys.stdin.readline().rstrip().split())  
def LS2(): return list(sys.stdin.readline().rstrip())  

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

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

Solution (Python):
import sys

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

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

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



ans = 0
if ((w / 2) == x) & ((h / 2) == y):
    ans = 1

print(w * h / 2, ans)

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

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

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

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

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

Solution (Python):
import bisect,collections,copy,itertools,math,string
import sys
def I(): return int(sys.stdin.readline().rstrip())
def LI(): return list(map(int,sys.stdin.readline().rstrip().split()))
def S(): return sys.stdin.readline().rstrip()
def LS(): return list(sys.stdin.readline().rstrip.split())
def main():
    w,h,x,y = LI()
    area = w * h
    ans1 = area /2
    ans2 = 0
    if w == 2*x and h == 2*y:
        ans2 = 1

    print(ans1,ans2)

main()

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

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

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=map(int,input().split())


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

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


import heapq
sys.setrecursionlimit(10**6)

INF = 10**18
import bisect
import statistics
mod = 10**9+7


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

if x == W/2.0 and y == H/2.0:
    print(W*H/2.0,1)
else:
    print(W*H/2.0,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())

area = w * h
ans = area / 2
ok = 0

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

print(ans, ok)

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

Solution (Python):
import sys
import math


inint = lambda: int(sys.stdin.readline())
inintm = lambda: map(int, sys.stdin.readline().split())
inintl = lambda: list(inintm())
instrm = lambda: map(str, sys.stdin.readline().split())
instrl = lambda: list(instrm())


w, h, x, y = inintm()

if x == w/2 and y == h/2:
    print("{} {}".format(w*h/2, 1))
else:
    print("{} {}".format(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:
    ret = 1
else:
    ret = 0

print(S,ret)

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

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

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

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

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

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

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())
p = 0
if (x, y) == (W/2, H/2):
    p = 1
print('{} {}'.format(W*H/2, p))

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

ox = w/2
xy = h/2
s = w*h/2

if ox == x and xy == y:
  print(s, 1)

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

Solution (Python):
W,H,w,h = map(float, input().split())
ans =0
if w+w ==W and h+h==H:
    ans =1
print('{:9f} {}'.format(W*H/2, ans))

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

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

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

ans = W*H/2

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

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

def I(): return int(input())
def MI(): return map(int, input().split())
def LI(): return list(map(int, input().split()))

def main():
    mod=10**9+7
    W,H,x,y=MI()
    ans=(W*H)/2
    if x==W/2 and y==H/2:
        print(ans,1)
    else:
        print(ans,0)
    
    

main()

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

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

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


if __name__ == "__main__":
    main()

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

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

Solution (Python):
W, H, x, y = list(map(lambda n: int(n), input().split(" ")))
 
S = W * H / 2

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

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):
import math
from math import gcd
INF = float("inf")

import sys
input=sys.stdin.readline
import itertools
from collections import Counter

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



if __name__=="__main__":
    main()

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

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

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

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())

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

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

flag = 0

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

print(w * h / 2, flag)

Solution (Python):


def solve(W, H, x, y):
  mw, mh = W / 2, H / 2
  return f'{W * H / 2} {int((x, y) == (mw, mh))}'


if __name__ == '__main__':
  print(solve(*map(int, input().split())))

Solution (Python):





w,h,x,y=list(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):
def main():
    W, H, x, y = map(int, input().split())
    area = (H*W)/2
    mid_x, mid_y = W/2, H/2
    if x == mid_x and y == mid_y:
        ans = 1
    else:
        ans = 0
    print(area, ans)

if __name__ == "__main__":
    main()

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

a = w*h/2
m = "1" if (x==w/2) and (y==h/2) else "0"

print(str(a) + " " + m)

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

if __name__ == "__main__":
    main()

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

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

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

W, H, x, y = LI()


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


if __name__ == "__main__":
    main()

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

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,open(0).read().split())

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

Solution (Python):




def gcd(a, b):
    if a < b:
        a, b = b, a
    while b > 0:
        tmp = a
        a = b
        b = tmp % b
    return a

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









print(area, has_points)

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

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

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

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

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

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

print(w*h/2,hou)

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

Solution (Python):
w,h,x,y=list(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())

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

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

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

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

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

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

print("{0} {1}".format(W*H/2, (int)(x==W//2 and y==H//2 and W % 2 == 0 and H % 2 == 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())

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

Solution (Python):
W, H, x, y = map(int, input().split())
area = W * H / 2
multi = x * 2 == W and y * 2 == H
print(area, 1 if multi 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 = list(map(int, input().split()))

area = W * H / 2

checker = 0

if(x == W / 2 and y == H / 2):
    checker = 1

print(area, checker)

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

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

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

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

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

cx, cy = W/2, H/2

flg = 0
if x == cx and y == cy:
    flg = 1

print(W*H/2, flg)

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

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

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())
print(w*h/2, int(h==2*y and w==2*x))

Solution (Python):
from decimal import Decimal
w, h, x, y = map(int, input().split())
print("{:.9f}".format(Decimal(w)*Decimal(h)*Decimal(0.5)), int(2*x==w and 2*y==h))

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())

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())
M = W*H/2
if (x == W/2 and y == H/2):
    print(str(M)+' '+'1')
else:
    print(str(M)+' '+'0')