#include<iostream> using namespace std; int main(){ int n,x=0,g=0; cin>>n; while(g<n){ x++; g=g+x; } cout<<x; return 0; }