#include using namespace std; #define int long long const int MOD = 1000000007; signed main() { cin.tie(0); ios::sync_with_stdio(false); int X, Y, Z; cin >> X >> Y >> Z; if (X % 3 == 0 || Y % 3 == 0 || Z % 3 == 0) { cout << "Yes" << endl; } else { cout << "No" << endl; } }