#include <bits/stdc++.h>
using namespace std;
using ll = long long;
const int MOD = (int)1e9 + 7;
const int INF = (int)1e9;
const ll LINF = (ll)1e18;
int main() {
  int a, b, c;
  cin >> a >> b >> c;
  if ((a + b + c) % 3 == 0)
    cout << "Yes" << endl;
  else
    cout << "No" << endl;
}
