#include <bits/stdc++.h>
using namespace std;
#define rep(i,n) for(int i = 0; i < (n);i++)
#define sz(x) int(x.size())
typedef long long ll;
typedef long double ld;
typedef pair<int,int> P;
constexpr int mod = 1e9+7;


int main() {
  int x, y, z;
  cin >> x >> y >> z;
  if (x % 3 == 0 || y % 3 == 0 || z % 3 == 0) cout << "Yes" << endl;
  else cout << "No" << endl;
  return 0;
}