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