#include #define int long long #define double long double using namespace std; const int MOD = 1000000007; const int INF = 1e14; using Graph = vector>; signed main(){ int A, B, C; cin >> A >> B >> C; if( A%3 == 0 || B%3 == 0 || C%3 == 0 ) cout << "Yes" << endl; else cout << "No" << endl; }