Buggy python submission (verdict: Runtime Error):
w,h,x,y = map(int, input().split())

#print("{0} {1} {2} {3}".format(str(w), str(h), str(x), str(y)))

if x > w/2:
    x = w - x
if y > h/2:
    y = h - y

# 横
men1 = w * y
men2 = w * (h-y)

# 縦
men3 = x * h
men4 = (w-x) * h

#print("{0} {1} {2} {3}".format(str(w), str(h), str(x), str(y)))
#print("{0} {1} {2} {3}".format(str(men1), str(men2), str(men3), str(men4)))

out2 = 0

if min(men1, men2) == 0:
    out1 = min(men3, men4)
elif min(men3, men4) == 0:
    out1 = min(men1, men2)
else:
    out1 = max(min(men1, men2), min(men3, men4))

if min(men1, men2) == min(men3, men4):
    out2 = 1
if men1 == men2 or men3 == men4):
    out2 = 1

if x == 0 and y ==0:
    out1 = x*y /2
    out2 = 0

print("{0} {1}".format(out1, out2))

Fixed submission:
w,h,x,y = map(int, input().split())
out1 = w * h / 2
out2 = 1 if x == w/2 and y == h/2 else 0
print("{0} {1}".format(str(out1), str(out2)))

Buggy python submission (verdict: Runtime Error):
    w,h,x,y = map(int, input().split())

    if x > w/2:
        x = w - x
    if y > h/2:
        y = h - y

    # 横
    men1 = w * y
    men2 = w * (h-y)

    # 縦
    men3 = x * h
    men4 = (w-x) * h

    if x == 0 and y ==0 :
        out1 = w * h
        out2 = 1
    else:
        #print("{0} {1} {2} {3}".format(str(men1), str(men2), str(men3), str(men4)))

        if min(men1, men2) == 0:
            out1 = min(men3, men4)
        elif min(men3, men4) == 0:
            out1 = min(men1, men2)
        else:
            out1 = max(min(men1, men2), min(men3, men4))

        if x != 0 and y != 0 and (h / w) == (y / x):
            out1 = w * h / 2

        out2 = 0
        if min(men1, men2) == min(men3, men4):
            out2 = 1
        if x != 0 and y != 0 and (h / w) == (y / x):
            out2 = 1

    print("{0} {1}".format(out1, out2))


Fixed submission:
w,h,x,y = map(int, input().split())
out1 = w * h / 2
out2 = 1 if x == w/2 and y == h/2 else 0
print("{0} {1}".format(str(out1), str(out2)))

Buggy python submission (verdict: Runtime Error):
w,h,x,y = map(int, input().split())

if x > w/2:
    x = w - x
if y > h/2:
    y = h - y

# 横
men1 = w * y
men2 = w * (h-y)

# 縦
men3 = x * h
men4 = (w-x) * h

if x == 0 and y ==0:
    out1 = w * h
    out2 = 1
else:
    print("{0} {1} {2} {3}".format(str(men1), str(men2), str(men3), str(men4)))

    if min(men1, men2) == 0:
        out1 = min(men3, men4))
    elif min(men3, men4) == 0:
        out1 = min(men1, men2))
    else:
        out1 = max(min(men1, men2), min(men3, men4))

    if x != 0 and y != 0 and (h / w) == (y / x):
        out1 = w * h / 2

    out2 = 0
    if min(men1, men2) == min(men3, men4):
        out2 = 1
    if x != 0 and y != 0 and (h / w) == (y / x):
        out2 = 1

print("{0} {1}".format(out1, out2))


Fixed submission:
w,h,x,y = map(int, input().split())
out1 = w * h / 2
out2 = 1 if x == w/2 and y == h/2 else 0
print("{0} {1}".format(str(out1), str(out2)))

Buggy python submission (verdict: Runtime Error):
w,h,x,y = map(int, input().split())

# 横
men1 = w * y
men2 = w * (h-y)

# 縦
men3 = x * h
men4 = (w-x) * h


#print("{0} {1} {2} {3}".format(str(men1), str(men2), str(men3), str(men4)))
out1 = max(min(men1, men2), min(men3, men4))
if min(men1, men2) == min(men3, men4):
    out2 = 1
elif (h / w) == (y / x):
    out2 = 1
else:
    out2 = 0

print("{0} {1}".format(out1, out2))

Fixed submission:
w,h,x,y = map(int, input().split())
out1 = w * h / 2
out2 = 1 if x == w/2 and y == h/2 else 0
print("{0} {1}".format(str(out1), str(out2)))