#line 1 "main.cpp" #include using namespace std; void solve() { int m = 0; for (int i = 0; i < 3; ++i) { int x; cin >> x; (m += x) %= 3; } cout << (m == 0 ? "Yes" : "No") << "\n"; } int main() { cin.tie(nullptr); ios::sync_with_stdio(false); solve(); return 0; }