#include <iostream>
using namespace std;

int main() {
	double a, b, x;
	int n = 0;
	while (cin >> a >> b)
	{
		cout << ++n << ") ";	
		if (a == 0)
		{
			if (b == 0)	cout << "Infinite set of roots; \n";
			else	cout << "No roots; \n";
		}
		else
		{
			x = (-b/a == -0)? b/a : -b/a;
			cout << x << "; \n";
		}
	}
	return 0;
}