/* This program is an answer to the problem stated in mt1-4.txt. */ main() { int n; int i; while (scanf("%d",&n) == 1) { i = 0; while (i * i <= n) ++i; printf("%d\n",i - 1); } }