#include using namespace std; int main(){ int a, b, c; cin >> a >> b >> c; a %= 3; b %= 3; c %= 3; if((a+b+c)%3 == 0) cout << "Yes" << endl; else cout << "No" << endl; return 0; }