#include using ll=long long; using namespace std; int main(){ ll n; cin>>n; vector a; for(ll i=1;i<=n;i++) if(n%i==0) a.push_back(i); ll sum=0; for(auto &i:a) sum+=i; if(sum==2*n){ cout<<"Yes"<