#include <bits/stdc++.h>
using namespace std;
const double EPS = 1e-9;
const double PI = acos(-1);
const int INF = 1e9;
const long long MOD = 1e9 + 7;
long long addMod(long long a, long long b) { return (a + b) % MOD; }
long long mulMod(long long a, long long b) { return (a * b) % MOD; }
int main() {
  ios_base ::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  int x, tot = 0;
  for (int i = 0; i <= (int)3 - 1; i += 1) cin >> x, tot += x;
  if (tot % 3 == 0)
    cout << "Yes" << endl;
  else
    cout << "No" << endl;
  return 0;
}
