#include <bits/stdc++.h>
using namespace std;
void Main() {
  int a, b, c;
  cin >> a >> b >> c;
  cout << ((a + b + c) % 3 == 0 ? "Yes" : "No") << "\n";
}
int main() {
  cin.tie(nullptr);
  ios_base::sync_with_stdio(false);
  cout << fixed << setprecision(15);
  Main();
}
