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