#include using namespace std; unsigned long long f(int x){ return (1+x)*x/2; } int main(void){ unsigned long long x; cin>>x; unsigned long long i=1; while(f(i)x) r=(l+r)/2-1; else l=(l+r)/2+1; } cout<<"NO"<