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