#include <bits/stdc++.h>
using namespace std;
int dy[4] = {-1, 1, 0, 0};
int dx[4] = {0, 0, 1, -1};
int a, b, c;
int main() {
  ios::sync_with_stdio(false);
  cin >> a >> b >> c;
  if ((a + b + c) % 3 == 0)
    cout << "Yes" << endl;
  else
    cout << "No" << endl;
  return 0;
}
