import Control.Monad
main=do
 s<-replicateM 3 (map read.words<$>getLine)
 let p=100
     q=(-100)
     s1=[(x,y)|x<-[q..p],y<-[q..p],x+y==(s!!0)!!0]
     s2=[(x,y)|x<-map fst s1,y<-[q..p],x+y==(s!!0)!!1]
     s3=[(x,y)|x<-map fst s2,y<-[q..p],x+y==(s!!0)!!2]
     s4=[(x,y)|x<-[q..p],y<-map snd s1,x+y==(s!!1)!!0]
     s5=[(x,y)|x<-map fst s4,y<-map snd s2,x+y==(s!!1)!!1]
     s6=[(x,y)|x<-map fst s5,y<-map snd s3,x+y==(s!!1)!!2]
     s7=[(x,y)|x<-[q..p],y<-map snd s4,x+y==(s!!2)!!0]
     s8=[(x,y)|x<-map fst s7,y<-map snd s5,x+y==(s!!2)!!1]
     s9=[(x,y)|x<-map fst s8,y<-map snd s6,x+y==(s!!2)!!2]
 putStrLn$if null s9 then "No" else "Yes"
     