import java.util.Scanner; public class Main { 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(); if (x % 3 == 0 || y % 3 == 0 || z % 3 == 0) { System.out.println("Yes"); } else { System.out.println("No"); } } }