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