#include using namespace std; void solve() { unsigned x, y, z; cin >> x >> y >> z; cout << ((x % 3 == 0 or y % 3 == 0 or z % 3 == 0) ? "Yes" : "No") << endl; } int main() { cin.tie(0); ios::sync_with_stdio(false); solve(); getchar(); }