#include <bits/stdc++.h>
using namespace std;
int main() {
  double a, b, c;
  while (cin >> a >> b >> c) {
    double ans1;
    double ans2;
    if (a != 0) {
      ans1 = (-b + sqrt(pow(b, 2) - 4 * a * c)) / (2 * a);
      ans2 = (-b - sqrt(pow(b, 2) - 4 * a * c)) / (2 * a);
    } else {
      ans1 = ans2 = -(c / b);
    }
    if (ans1 > ans2) {
      printf("%0.6lf\n", ans1);
      printf("%0.6lf\n", ans2);
    } else {
      printf("%0.6lf\n", ans2);
      printf("%0.6lf\n", ans1);
    }
  }
  return 0;
}
