#include <iostream>
using namespace std;
int main(void){
    
    int a,b,c,d=0;
    cin>>a>>b>>c;
    d=a+b+c;
    if(d%3==0){
        cout<<"Yes"<<endl;
    }
    else {
        cout<<"No"<<endl;
    }
    
}
