#include using namespace std; using ll = long long; using pint = pair; #include #include namespace mp = boost::multiprecision; using Int = mp::cpp_int; // 任意長整数 Int sqint(Int num){ Int l = 0; Int r = num; while(r - l > 1){ Int mid = (r + l) / 2; (mid * mid <= num ? l : r) = mid; } return l; } int main() { Int N; cin >> N; auto sq = sqint(N); auto str = sq.str(); cout << str.size() << endl; }