import java.io.InputStream; import java.io.PrintWriter; import java.lang.reflect.Array; import java.math.BigDecimal; import java.math.MathContext; import java.util.ArrayDeque; import java.util.ArrayList; import java.util.Arrays; import java.util.Collections; import java.util.Comparator; import java.util.HashMap; import java.util.HashSet; import java.util.Iterator; import java.util.List; import java.util.Map; import java.util.Map.Entry; import java.util.PriorityQueue; import java.util.Queue; import java.util.Scanner; import java.util.Set; import java.util.Stack; import java.util.TreeMap; import java.util.TreeSet; import static java.util.Comparator.*; public class Main { public static void main(String[] args) { PrintWriter out = new PrintWriter(System.out); Solver solver = new Solver(System.in, out); solver.solve(); out.close(); } } class Solver { Scanner sc; PrintWriter out; public Solver(InputStream in, PrintWriter out) { sc = new Scanner(in); this.out = out; } // ================================================================== public void solve() { long A = Long.parseLong(sc.next()); long B = Long.parseLong(sc.next()); long C = Long.parseLong(sc.next()); if(A == 0 && B == 0) { if(C == 0) out.println(-1); else out.println(0); } else if(A == 0) { out.println(1); out.println(String.format("%.14f", (double)C * -1 /B)); } else if(B == 0) { if(C == 0) { out.println(1); out.println(0); } else if((long)A * C < 0) { out.println(0); } else { double X = Math.sqrt((double)C*-1/A); out.println(2); out.println("-" + String.format("%.14f", X)); out.println(String.format("%.14f", X)); } } else if(C == 0) { out.println(2); // if(B > 0) { if((B > 0 && A > 0) || (B < 0 && A < 0)) { out.println(String.format("%.14f", (double)B * -1 / A)); out.println(0); } else { out.println(0); out.println(String.format("%.14f", (double)B * -1 / A)); } } else if((B*B - 4*A*C) < 0) { out.println(0); } else { if((B*B - 4*A*C) == 0) { out.println(1); out.println(String.format("%.14f", ((double)B * -1) / A / 2)); } else { BigDecimal wk = sqrt(B*B - 4*A*C); out.println(2); if(A > 0) { out.println(String.format("%.14f", (new BigDecimal(B).negate().subtract(wk).divide(new BigDecimal(A*2),14,BigDecimal.ROUND_UP)))); out.println(String.format("%.14f", (new BigDecimal(B).negate().add(wk).divide(new BigDecimal(A*2),14,BigDecimal.ROUND_UP)))); } else { out.println(String.format("%.14f", (new BigDecimal(B).negate().add(wk).divide(new BigDecimal(A*2),14,BigDecimal.ROUND_UP)))); out.println(String.format("%.14f", (new BigDecimal(B).negate().subtract(wk).divide(new BigDecimal(A*2),14,BigDecimal.ROUND_UP)))); } } } } BigDecimal sqrt(long a) { MathContext cx = new MathContext(20); BigDecimal cur = BigDecimal.ONE; // (x+a/x)/2 for(int rep = 0;rep < 50;rep++){ cur = cur.add(BigDecimal.valueOf(a).divide(cur, cx)).divide(BigDecimal.valueOf(2), cx); } return cur; } }