w,h,x,y = gets.split.map(&:to_i)

# 縦
tate = 0
tate = h*[(w-x),x].min if x != 0

# 横
yoko = 0
yoko = w*[(h-y),y].min if y != 0

ans = ([tate,yoko].max).to_f
two = tate == yoko ? 1 : 0

puts "#{ans} #{two}"