let x, y = Scanf.sscanf (read_line()) "%d %d" (fun x y -> x,y)
let rec loop turu =
  let rec loop2 kame =
  if turu + kame > x then "No" else 
    if turu * 2 + kame * 4 = y && turu + kame = x then "Yes" else loop2 (kame+1)
  in if turu > x then "No" else if loop2 0 = "Yes" then "Yes" else loop (turu+1)
let _ = print_endline @@ loop 0