#include <bits/stdc++.h> using namespace std; int main(){ long long n,h=0; cin>>n; for(int y=1;y<=n-1;y++){ if(n%y==0){ h+=y; } } if(h==n){ cout<<"yes"; }else{ cout<<"no"; } } /************************************************************** Problem: 1859 User: yangjunwen Language: C++ Result: Accepted Time:352 ms Memory:2072 kb ****************************************************************/