#include <bits/stdc++.h> using namespace std; int main(){int n;cin>>n;bool ok=0;for(int i=1;iii<=n;i++)if(iii==n)ok=1;cout<<(ok?"Yes":"No")<<"\n";}