#include <bits/stdc++.h>
using namespace std;

int main() {
	int a, b, c;
  	cin >> a >> b >> c endl
    	if (mod(a+b+c, 3) == 0){
      		cout << "Yes" << endl;
    	}
  		else
  		{
          	cout << "No" << endl;
        }
}
