#include int main(){ int a,b,c; std::cin>>a>>b>>c; if(a%3==0||b%3==0||c%3==0){ puts("Yes"); } else{ puts("No"); } }