#include <bits/stdc++.h>
using namespace std;
template <typename T>
T square(T x) {
  return x * x;
}
template <class A>
void pr(A a) {
  cout << a;
  cout << '\n';
}
template <class A, class B>
void pr(A a, B b) {
  cout << a << ' ';
}
int ans = 0;
int main() {
  int a, b, c, n, x, y;
  cin >> a >> b >> x;
  if ((a + b + x) % 3 == 0)
    printf("Yes\n");
  else
    printf("No\n");
  return 0;
}
