#include #include using namespace std; using namespace atcoder; using ll = long long; using ld = long double; ll x, y, z; int main() { cin >> x >> y >> z; cout << ((300LL + x + y + z) % 3 == 0 ? "Yes": "No") << endl; return 0; }