#include #define rep(i,s,n) for (int i = s; i < (n); ++i) using namespace std; using ll = long long; using P = pair; using field = vector>; int main() { int a,b,c; cin >> a >> b >> c; if (a%3 * b%3 * c%3 == 0) cout << "Yes" << endl; else cout << "No" << endl; return 0; }