#include #include #define rep(i,n) for (int i = 0; i < (n); ++i) #define ll long long #define mod 1000000007 using namespace std; int main(){ ll a,b,c; cin>>a>>b>>c; if(a%3==0||b%3==0||c%3==0){ cout<<"Yes"<