#include using namespace std; int main(){ long long X,Y,Z; cin>>X>>Y>>Z; if((X*Y*Z)%3==0)cout<<"Yes"; else cout<<"No"; }