#include using lint=long long; using real=long double; int main(){ std::cin.tie(nullptr);std::ios_base::sync_with_stdio(false); std::cout.setf(std::ios_base::fixed);std::cout.precision(15); lint n;std::cin>>n; std::vectora; for(lint i=1,j=1;j<=n;j+=++i)a.push_back(j); if(a.back()==n){ std::cout<<1<<'\n'; return 0; } lint m=a.size(); for(lint i=1,j=m-1;i