#pragma GCC optimize("Ofast") #include #include #include #include #include #include #include #include #include const long long INF_L = 1e17+7; const long long INF_I = 1e9+7; const long long MOD = 1e9+7; const double EPS = 1e-8; const double PI=acos(-1); using namespace std; int main(){ cin.tie(0); ios::sync_with_stdio(false); long long x,y,z; cin >> x >> y >> z; if((x%3)*(y%3)*(z%3)==0)cout << "Yes" << endl; else cout << "No" << endl; return 0; }