#include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  ll x, y, z;
  cin >> x >> y >> z;
  if (x % 3 == 0 || y % 3 == 0 || z % 3 == 0) {
    cout << "Yes" << '\n';
  } else {
    cout << "No" << '\n';
  }
}