#include using namespace std; int main() { auto ok = false; for (int i = 0; i < 3; ++i) { int x; cin >> x; if (x % 3 == 0) ok = true; } if (ok) { cout << "Yes" << endl; } else { cout << "No" << endl; } return 0; }