#include <bits/stdc++.h>
using namespace std;
long long gcd(long long a, long long b) {
  long long amari = a % b;
  long long c = b;
  if (amari == 0) {
    return b;
  } else {
    return gcd(b, amari);
  }
}
long long lcm(long long a, long long b) { return a * b / gcd(a, b); }
signed main() {
  long long a, b, c;
  cin >> a >> b >> c;
  if ((a + b + c) % 3 == 0)
    cout << "Yes";
  else
    cout << "No";
}
