#include #define PI 3.14159265359 using namespace std; const int64_t mod = 1e9 + 7; int main() { int64_t X, Y, Z; cin >> X >> Y >> Z; bool b = false; if (X % 3 == 0) b = true; if (Y % 3 == 0) b = true; if (Z % 3 == 0) b = true; cout << (b ? "Yes" : "No") << endl; }