#include using namespace std; int main() { long long a,b,c; cin>>a>>b>>c; if(a%3==0||b%3==0||c%3==0)cout<<"Yes"<