#include <bits/stdc++.h>
using namespace std;
int main() {
  int x;
  int z;
  int c;
  int y;
  cin >> x >> z >> c;
  y = x + z + c;
  if (y % 3 == 0) {
    cout << "Yes";
  } else
    cout << "No";
  return 0;
}
