#include <bits/stdc++.h>
using namespace std;
void solve(int test_case) {
  int a, b, c;
  cin >> a >> b >> c;
  cout << ((a + b + c) % 3 == 0 ? "Yes" : "No");
}
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  int t = 1;
  for (int i = 1; i <= t; i++) {
    solve(i);
  }
  return 0;
}
