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