import java.util.Scanner; public class HelloWorld { public static void main(String[] args) throws Exception { Scanner sc = new Scanner(System.in); int x = sc.nextInt(); int y = sc.nextInt(); int z = sc.nextInt(); sc.close(); int a = (x % 3) * (y % 3) * (z % 3); System.out.println(a % 3== 0 ? "Yes" : "No"); } }