char buf[7834], buf2[36798];
int i;
double x;
for (x = 5; i < n; i++, x /= 10);
sprintf(buf, "%%.%df", n);
sprintf(buf2, buf, a+x);