import java.util.*;
import java.lang.*;
import java.io.*;

class Ideone
{
	public static void main (String[] args) throws java.lang.Exception
	{
		double a, b, x;
		Scanner in = new Scanner(System.in);
		while (in.hasNextDouble())
		{
			a = in.nextDouble();
			b = in.nextDouble();
			if (a == 0)
			{
				if (b == 0)	System.out.println("Infinite set of roots; ");
				else		System.out.println("No roots; ");
			}
			else
			{
				x = (-b/a == -0)? b/a : -b/a;
				System.out.println(x + "; ");
			}
		}
	}
}