#include <bits/stdc++.h>
using namespace std;
const int INF = 1000000007;
const int MAX_V = 201;
int now = 0;
int deco[1000];
void Sequence() {
  int a, b, c;
  cin >> a >> b >> c;
  if ((a + b + c) % 3 == 0) {
    cout << "Yes" << endl;
  } else
    cout << "No" << endl;
}
int main() {
  Sequence();
  return 0;
}
