#pragma GCC optimize("O3")
#pragma GCC optimize("unroll-loops")
#include <bits/stdc++.h>
#define pb push_back
#define all(x) (x).begin(), (x).end()
#define debug(x) { cerr << #x << " = " << x << endl; }
#define IO { ios_base::sync_with_stdio(false); cin.tie(0); }
#define read(x) freopen(x, "r", stdin)
#define write(x) freopen(x, "w", stdout)
#define endl '\n'
#define int long long
using namespace std;
typedef long long ll;
typedef pair<int, int> ii;
typedef vector<int> vi;
void solve() {
int n;
cin >> n;
int x = 1, ans = 0;
while(true) {
int k = x*x;
if(x*x > n) break;
ans++;
if(x*(x+1) <= n) ans++;
x++;
}
cout << ans << endl;
}
signed main() {
IO;
int tc = 1;
// #ifndef ONLINE_JUDGE
// read("input.txt");
// write("output.txt");
// #endif
// cin >> tc;
for (int cs = 1; cs <= tc; cs++) {
solve();
}
return 0;
}