let () = Scanf.scanf "%d %d %d\n" @@ fun x y z -> Printf.printf "%s\n" (if x*y*z mod 3 = 0 then "Yes" else "No")