#include <bits/stdc++.h>
using namespace std;
int main() {
  int a, b, c, sum;
  scanf("%d%d%d", &a, &b, &c);
  sum = a + b + c;
  if (sum % 3 == 0)
    cout << "Yes";
  else
    cout << "No";
  return 0;
}
