#include #define rep(a,n) for (ll a = 0; a < (n); ++a) using namespace std; typedef long long ll; typedef pair P; typedef pair PP; typedef vector > Graph; template inline bool chmax(T& a, T b) { if (a < b) { a = b; return 1; } return 0; } template inline bool chmin(T& a, T b) { if (a > b) { a = b; return 1; } return 0; } const ll INF = 1e18; int main(){ ll 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; }