
#include <stdio.h>
#include <math.h>
#include <string.h>


int main()

{

#define FULL_LENGTH 65

double result;
result = sqrt(1000000220);

printf("%.60f\n", result);


int i, how_many_cyphers = 0;

char buf[FULL_LENGTH];
sprintf(buf, "%.60f", result);

for(i = 0; i <= FULL_LENGTH - strlen(strstr(buf, "000000")); i++)
 if(buf[i] != '.') how_many_cyphers++;
 
printf("%d\n", how_many_cyphers);

 

return 0;
} 
