#include int main() { int x, y, z; std::cin >> x >> y >> z; std::cout << (x % 3 && y % 3 && z % 3 ? "No" : "Yes") << '\n'; return 0; }