let arr=readLine()!.characters.split{$0==" "}.map{Float(String($0))!}
let w = arr[0]
let h = arr[1]
let x = arr[2]
let y = arr[3]

var m = w * h
var mx = x * h
var my = y * w
var o : Float = 0
var o2 = 0
if( mx < my ) {
  o = mx
} else {
  o = my
}

if( mx == my ) {
  o2 = 1
}

print ( o, o2 )
