#include using namespace std; #define int long long #define ll long long #define pb push_back #define mp make_pair #define f(i,a,n) for(int i=a ; i=a ; i--) #define F first #define S second #define all(c) (c).begin(),(c).end() #define sz(v) (int)(v).size() #define fast ios::sync_with_stdio(0); cin.tie(0); cout.tie(0) typedef long double ld; typedef vector vi; typedef pair pii; typedef pair ppi; typedef vector vpi; const int inf = 1e9; const int inf64 = 1e18; const int MOD = inf + 7; void solve(){ int x,y,z; cin >> x >> y >> z; x %= 3 , y %= 3 , z %= 3; cout << (x * y * z ? "No" : "Yes") << "\n"; } int32_t main(){ fast; int t = 1; // cin >> t; while(t--) solve(); }