#include <bits/stdc++.h>
int main(void) {
  int a, b, c;
  double remainder;
  scanf("%d %d %d", &a, &b, &c);
  remainder = (a + b + c) % 3;
  if (remainder == 0)
    printf("Yes");
  else
    printf("No");
  return 0;
}
