#include using namespace std; long const mod = 1e9+7; int main(){ long a; cin >> a; long summ = 3; for(long i=3;i<=100000000;i++){ summ += i; if(summ % i == a % i){ cout << "YES"<