#include <bits/stdc++.h>
int main() {
  int a, b, c;
  double x1, x2;
  scanf("%d%d%d", &a, &b, &c);
  if (a == 0 && b == 0) {
    printf("-1\n");
    return 0;
  }
  if (a == 0 && b != 0) {
    printf("%.5lf\n", -1.0 * c / b);
  }
  if (a != 0) {
    if (b * b > 4 * a * c) {
      x1 = 1.0 * (-b - sqrt(b * b - 4 * a * c)) / (2 * a);
      x2 = 1.0 * (-b + sqrt(b * b - 4 * a * c)) / (2 * a);
      if (x1 > x2) printf("%.5lf\n%.5lf\n", x2, x1);
      printf("%.5lf\n%.5lf\n", x1, x2);
    } else if (b * b == 4 * a * c) {
      double x1 = 1.0 * b / (2 * a);
      printf("%.5lf\n", x1);
    } else
      printf("0\n");
  }
  return 0;
}
