#include <math.h>
#include <stdio.h>
void print(double x);
int main(void) {
print(-1234.5678);
printf("%f\n", 10000000000000.0); print(10000000000000.0);
printf("%f\n", 99999999999999.0); print(99999999999999.0);
print(0.0000001);
print(0.000001);
printf("%f\n", 0.99999999999999); print(0.99999999999999);
return 0;
}
void print(double x) {
double y;
int ds[64];
int i, j;
if (x < 0.0) {
}
i = 0;
while (y >= 1.0) {
ds[i++] = (int)fmod(y, 10.0);
y /= 10.0;
}
while (i < 7) {
ds[i++] = 0;
}
while (i > 0) {
if (i == 6) {
}
}
}
I2luY2x1ZGUgPG1hdGguaD4KI2luY2x1ZGUgPHN0ZGlvLmg+Cgp2b2lkIHByaW50KGRvdWJsZSB4KTsKCmludCBtYWluKHZvaWQpIHsKCXByaW50ZigiJWZcbiIsIC0xMjM0LjU2NzgpOwoJcHJpbnQoLTEyMzQuNTY3OCk7CglwcmludGYoIiVmXG4iLCAxMDAwMDAwMDAwMDAwMC4wKTsKCXByaW50KDEwMDAwMDAwMDAwMDAwLjApOwoJcHJpbnRmKCIlZlxuIiwgOTk5OTk5OTk5OTk5OTkuMCk7CglwcmludCg5OTk5OTk5OTk5OTk5OS4wKTsKCXByaW50ZigiJWZcbiIsIDAuMDAwMDAwMSk7CglwcmludCgwLjAwMDAwMDEpOwoJcHJpbnRmKCIlZlxuIiwgMC4wMDAwMDEpOwoJcHJpbnQoMC4wMDAwMDEpOwoJcHJpbnRmKCIlZlxuIiwgMC45OTk5OTk5OTk5OTk5OSk7CglwcmludCgwLjk5OTk5OTk5OTk5OTk5KTsKCXJldHVybiAwOwp9Cgp2b2lkIHByaW50KGRvdWJsZSB4KSB7Cglkb3VibGUgeTsKCWludCBkc1s2NF07CglpbnQgaSwgajsKCQoJaWYgKHggPCAwLjApIHsKCQlwdXRjaGFyKCctJyk7Cgl9CgkKCXkgPSBmYWJzKHgpICogMTAwMDAwMC4wOwoJaSA9IDA7Cgl3aGlsZSAoeSA+PSAxLjApIHsKCQlkc1tpKytdID0gKGludClmb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