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