#include using ll = long long; using llu = long long unsigned; using namespace std; int main() { int X, Y, Z; cin >> X >> Y >> Z; string result = "No"; if (X%3 == 0) { result = "Yes"; goto EXIT; } if (Y%3 == 0) { result = "Yes"; goto EXIT; } if (Z%3 == 0) { result = "Yes"; goto EXIT; } EXIT: cout << result << endl; return 0; }