#include using namespace std; using namespace chrono; #if __has_include() #include using namespace atcoder; #endif int main() { int64_t x, y, z; cin >> x >> y >> z; __int128_t mul = 1; mul *= x; mul *= y; mul *= z; if (mul % 3 == 0) { cout << "Yes" << endl; } else { cout << "No" << endl; } return 0; }