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