// #define _GLIBCXX_DEBUG #include using namespace std; #define rep(i, n) for (int i = 0; i < (int)(n); ++i) int main() { // Input int X, Y, Z; cin >> X >> Y >> Z; // Output cout << (X % 3 == 0 || Y % 3 == 0 || Z % 3 == 0 ? "Yes" : "No") << endl; }