#include using namespace std; #ifdef LOCAL #include "debug.h" #else #define DEBUG(...) #endif int main() { cin.tie(nullptr); ios::sync_with_stdio(false); int x, y, z; cin >> x >> y >> z; if (x % 3 == 0 or y % 3 == 0 or z % 3 == 0) { cout << "Yes\n"; } else { cout << "No\n"; } }