import Foundation
 
let input_line = readLine()!
 
let split = input_line.componentsSeparatedByString(" ") //components(separatedBy:)と実質同じ
let W = Double(split[0])!
let H = Double(split[1])!
let x = Double(split[2])!
let y = Double(split[3])!

let distanceOfx = W / 2 - x
let distanceOfy = H / 2 - y

//x = xで分割するのが最適
if abs(distanceOfx) < abs(distanceOfy) {
    if distanceOfx < 0 {
        print((x * H), 0)
    } else {
        print(((W - x) * H), 0)
    }
//x = x, y = yで分割するのが最適
} else if abs(distanceOfx) == abs(distanceOfy) {
    if distanceOfx < 0 {
        print((x * H), 1)
    } else {
        print(((W - x) * H), 1)
    } 
//y = yで分割するのが最適
} else if abs(distanceOfx) > abs(distanceOfy) {
    if distanceOfy < 0 {
        print((W * y), 0)
    } else {
        print((W * (H - y)), 0)
    }    
}