#include using namespace std; template using vec = vector; template using vvec = vec>; template using lqueue = priority_queue, greater>; template using gqueue = priority_queue, less>; int main() { int64_t x, y, z; cin >> x >> y >> z; cout << ((x + y + z) % 3 == 0 ? "Yes" : "No") << endl; }