#include<bits/stdc++.h> using namespace std; int n,b,j; int main(){ cin>>n; for(j=1;j<=n;j++){ if(n%j==0){ b+=j; } } if(b==n){ cout<<"yes"; }else{ cout<<"no"; } return 0; }