#include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main() {
  ios::sync_with_stdio(false), cin.tie(0);
  int a, b, c;
  cin >> a >> b >> c;
  cout << ((a + b + c) % 3 == 0 ? "Yes" : "No") << endl;
}
