#include <bits/stdc++.h>
using namespace std;
const int INF = 1e9, MOD = 1e9 + 7;
const long long LINF = 1e18;
long long int n = 1, cnt = 0, ans = 0, a, b, c, cmp, data, m, h, x, y, xcmp = 0,
              ycmp = 0, sum = 0;
string s, w;
vector<int> z;
int main(void) {
  cin.tie(0);
  ios::sync_with_stdio(false);
  cin >> a >> b >> c;
  if ((a + b + c) % 3 == 0) {
    cout << "Yes" << endl;
  } else {
    cout << "No" << endl;
  };
  return 0;
}
