#if os(Linux)
    import Glibc
#else
    import Darwin
#endif
extension String: CollectionType {}

var a: [Int] = readLine()!.split(" ").map { Int($0)! }

let Smax = a[0]*a[1]/2

var pl = 0

if a[2] != 0 {
  if a[2] == a[0]/2 {
    pl = 1
  } else {
    pl = 0
  }
  pl = 0
}

if a[3] != 0 {
  if a[3] == a[0]/2 {
    pl = 1
  } else {
    pl = 0
  }
  pl = 0
}

print(String(Smax) + " " + String(pl))