import Data.List

main = do
  (c:cs) <- replicate 3 readInts
  let (b:bs) = transpose $ map (map subtract c) cs
  let [[p, q], [r, s]] = map (map subtract b) bs
  if p*s - q*r == 0
    then putStr "Yes"
    else putStr "No"

readInts = map read . words <$> getLine