import java.util.Scanner; public class Main { public static void main(String[] args) throws Exception { Scanner sc = new Scanner(System.in); int a = sc.nextInt(); int b = sc.nextInt(); int c = sc.nextInt(); sc.close(); int d = b * b - 4 * a * c; if (d < 0) { System.out.println("imaginary"); } else if (d == 0) { System.out.println(-b / 2.0 / a); } else { double d2 = Math.sqrt(d); d2 = Math.abs(d2 / 2 / a); double e = -b / 2.0 / a; System.out.println(e - d2 + " " + (e + d2)); } } }