#include <iostream>
#include <limits>
using namespace std;
int main() {
double x = 1E-300;
cout << x << endl;
double y = 1E300;
cout << y << endl;
double z = y / x;
cout << z << endl;
cout << (z == std::numeric_limits<double>::infinity()) << endl;
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8bGltaXRzPgoKdXNpbmcgbmFtZXNwYWNlIHN0ZDsKCmludCBtYWluKCkgewogICAgZG91YmxlIHggPSAxRS0zMDA7CiAgICBjb3V0IDw8IHggPDwgZW5kbDsKICAgIGRvdWJsZSB5ID0gMUUzMDA7CiAgICBjb3V0IDw8IHkgPDwgZW5kbDsKICAgIGRvdWJsZSB6ID0geSAvIHg7CiAgICBjb3V0IDw8IHogPDwgZW5kbDsKICAgIGNvdXQgPDwgKHogPT0gc3RkOjpudW1lcmljX2xpbWl0czxkb3VibGU+OjppbmZpbml0eSgpKSA8PCBlbmRsOwoJCglyZXR1cm4gMDsKfQ==