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