#include using namespace std; typedef long long ll; const int INF = 1e9; const int MOD = 1e9+7; const ll LINF = 1e18; #define FOR(i,a,b) for(int i=(a);i<(b);++i) #define REP(i,n) for(int i=0;i<(n);++i) #define COUT(x) cout<<(x)<<"\n" int main(){ int x,y,z; cin >> x >> y >> z; if(x%3==0||y%3==0||z%3==0)COUT("Yes"); else COUT("No"); }