#include using namespace std; int main() { ios_base::sync_with_stdio(0); cin.tie(0); int x,y,z; cin>>x>>y>>z; if(x%3==0 || y%3==0 || z%3==0) cout<<"Yes"; else cout<<"No"; return 0; }