#include<bits/stdc++.h> using namespace std; int main(){ int a=0,i=0,n,b=1; cin>>n; while(a<=n){ a=a+b; b++; i++; } cout<<i; }