import std.stdio, std.math, std.conv; void main() { auto N = readln[0 .. $-1].to!ulong; auto r = cast(ulong) sqrt(cast(real) N).floor; if ((r+1)*(r+1) <= N) writeln(r+1); else writeln(r); }