import java.util.*;

public class equation {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		int c = sc.nextInt();
		int d = b*b-4*a*c;
		if (d < 0) {
			System.out.println(0);
		}
		else if (a == 0 && b == 0) {
			if (c == 0) {
				System.out.println(-1);
			}
			else {
				System.out.println(0);
			}
		}
		else {
			double r = (double) (-b-Math.sqrt(d))/(2*a);
			double s = (double) (-b+Math.sqrt(d))/(2*a);
			System.out.println(r);
			System.out.println(s);
		}
	}

}
