#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;
}