import java.util.*;

public class Main {
	public static void main (String[] args) {
    	Scanner sc = new Scanner(System.in);
    	double a = sc.nextInt();
    	double b = sc.nextInt();
    	double c = sc.nextInt();
    	double d = b * b - 4 * a * c;
    	if (d < 0) {
    	    System.out.println("imaginary");
    	} else if (d == 0) {
    	    System.out.println(-b / 2/ a);
    	} else {
    	    double x = (-b - Math.sqrt(d)) / 2 / a;
    	    double y = (-b + Math.sqrt(d)) / 2 / a;
    	    System.out.println(Math.min(x, y) + " " + Math.max(x, y));
    	}
    }
}