#include<iostream> using namespace std; int main(){ int a=0,b=0,c; cin>>c; while(a<c){ b=b+1; a=a+b; } cout<<b; return 0; }