//透過觀察,輸入數的2倍開根為解
#include <iostream>
#include<cmath>
using namespace std;
/* run this program using the console pauser or add your own getch, system("pause") or input loop */
int main(int argc, char** argv) {
long long int a,b;
while(cin>>a){
b=sqrt(a*2);
cout<<b<<endl;
}
return 0;
}