#include <bits/stdc++.h>
using namespace std;
int main() {
  double a, b, c;
  scanf("%lf%lf%lf", &a, &b, &c);
  if (a == 0 && b == 0)
    printf("-1\n");
  else if (a == 0)
    printf("%.10lf\n", -c / b);
  else if (b == 0) {
    if (c >= 0)
      printf("%.10lf\n%.10lf\n", -sqrt(c / b), sqrt(c / b));
    else
      printf("0\n");
  } else {
    if (b * b - 4 * a * c < 0)
      printf("0\n");
    else
      printf("%.10lf\n%.10lf\n", (-b - sqrt(b * b - 4 * a * c)) / (2 * a),
             (-b + sqrt(b * b - 4 * a * c)) / (2 * a));
  }
}
