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