#include <stdio.h>
#include <bits/stdc++.h>
using namespace std;
#define rep(i,n) for (int i = 0; i < (n); ++i)
#define Inf 1000000000

int main(){
	
	long long a,b,c;
	cin>>a>>b>>c;
	
	if((a+b+c)%3==0)cout<<"Yes"<<endl;
	else cout<<"No"<<endl;
	
    return 0;
}