#include using namespace std; #include #include #include #include #include template inline bool chmax(T& a, T b) { if (a < b) { a = b; return 1; } return 0; } template inline bool chmin(T& a, T b) { if (a > b) { a = b; return 1; } return 0; } #define rep(i,n) for (int i = 0; i < (n); ++i) typedef long long ll; typedef long double ld; using P=pair; const ld INF=1e18; const int mod=1e9+7; void solve(){ ll n; cin>>n; ll x=sqrt(n); if(x==1){ cout<<1+0+n-1<n/x){break;} y*=x; } cout<