package main import . "fmt" func main() { var x,y,z int64 Scan(&x,&y,&z) sum:=x+y+z if sum%3!=0 { Println("No") return } x+=100 y+=100 z+=100 ex:=100+sum/3 for i:=0;i<1000;i++ { if x>ex { tz:=(x-ex+2)/3*3 x-=tz z+=tz } if z>ex { ty:=(z-ex+1)/2*2 z-=ty y+=ty } if y>ex { tx:=y-ex y-=tx x+=tx } } if x==y&&y==z { Println("Yes") } else { Println("No") } }