import java.util.*; public class Main { public static void main (String[] args) { Scanner sc = new Scanner(System.in); int x = sc.nextInt(); int y = sc.nextInt(); int z = sc.nextInt(); if (x % 3 == 0 || y % 3 == 0 || z % 3 == 0) { System.out.println("Yes"); } else { System.out.println("No"); } } }