#include #include int main() { uint64_t a, b, c; scanf("%llu %llu %llu", &a, &b, &c); if (a%3==0||b%3==0||c%3==0)puts("Yes");else puts("No"); }