let [| x; y; z |] = stdin.ReadLine().Split() |> Array.map int let m = (x % 3 + y % 3 + z % 3) % 3 if m = 0 then "Yes" else "No" |> printfn "%s"