#include #include using namespace std; using namespace atcoder; using ll=long long; using ld=long double; ld pie=3.141592653589793; ll inf=144499999999994; ll mod=998244353; int main(){ ll x,y,z; cin >> x >> y >> z; if ((x+y+z)%3==0) { cout << "Yes" << endl; }else{ cout << "No" << endl; } }