main(a,b,c){scanf("%d %d %d",&a,&b,&c);(a%3)*(b%3)*(c%3)?puts("No"):puts("Yes");}