#include<bits/stdc++.h> using namespace std; int main() { int t,day=0,cnt=0; cin>>t; while(!(cnt>=t)){ cnt+=day; day++; } cout<<day-1; return 0; }