#include <bits/stdc++.h>
using namespace std;

int main() {
  int a,b,c,sum;
  cin >> a >> b >> c;

  sum==a+b+c;
  sum%=3;
  
  if (sum==0){
    cout << "Yes" << endl;
  }
  else{
    cout << "No" << end;
  }
}