import java.util.*; import java.math.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); long a = sc.nextInt(); long b = sc.nextInt(); long c = sc.nextInt(); long d = b*b-4*a*c; if(a==0&&b==0&&c==0){ System.out.print(-1); } else if(a==0&&b==0){ System.out.print(0); } else if(a==0){ System.out.println(1); BigDecimal n1 = new BigDecimal(-c); BigDecimal n2 = new BigDecimal(b); System.out.println(n1.divide(n2,50, BigDecimal.ROUND_DOWN)); } else if(d<0){ System.out.println(0); } else if(d==0){ System.out.println(1); BigDecimal n1 = new BigDecimal(-b); BigDecimal n2 = new BigDecimal(2*a); System.out.println(n1.divide(n2,50, BigDecimal.ROUND_DOWN)); } else{ System.out.println(2); BigDecimal n1 = new BigDecimal(b*b-4*a*c); BigDecimal n2 = new BigDecimal(-b); BigDecimal n3 = new BigDecimal(2*a); BigDecimal n4 = sqrt(n1,50); if(a>0){ System.out.println((n2.subtract(n4)).divide(n3,50,BigDecimal.ROUND_DOWN)); System.out.println((n2.add(n4)).divide(n3,50,BigDecimal.ROUND_DOWN)); } else{ System.out.println((n2.add(n4)).divide(n3,50,BigDecimal.ROUND_DOWN)); System.out.println((n2.subtract(n4)).divide(n3,50,BigDecimal.ROUND_DOWN)); } } } public static BigDecimal sqrt(BigDecimal a, int scale){ BigDecimal x = new BigDecimal(Math.sqrt(a.doubleValue()), MathContext.DECIMAL64); if(scale < 17){ x = x.setScale(scale, BigDecimal.ROUND_HALF_EVEN); return x; } BigDecimal b2 = new BigDecimal(2); for(int tempScale = 16; tempScale < scale; tempScale *= 2){ x = x.subtract( x.multiply(x).subtract(a).divide( x.multiply(b2), scale, BigDecimal.ROUND_HALF_EVEN)); } return x; } }