#include using namespace std; int main() { int X, Y, Z; cin >> X >> Y >> Z; assert(1 <= X && X <= 1000000000); assert(1 <= Y && Y <= 1000000000); assert(1 <= Z && Z <= 1000000000); if (X % 3 == 0 || Y % 3 == 0 || Z % 3 == 0) cout << "Yes" << endl; else cout << "No" << endl; return 0; }