#define _GLIBCXX_DEBUG #include using namespace std; int main() { int X, Y, Z; cin >> X >> Y >> Z; if(X%3 == 0 or Y%3 == 0 or Z%3 == 0) cout << "Yes" << endl; else cout << "No" << endl; }