#include <bits/stdc++.h>
using namespace std;
int main() {
  double a, b, c, x, y, mn, mx, ans1, ans2;
  cin >> a >> b >> c;
  x = b * b - 4 * a * c;
  x = sqrt(x);
  mn = -b - x;
  mx = -b + x;
  mn = mn / (2 * a);
  mx = mx / (2 * a);
  ans1 = max(mn, mx);
  ans2 = min(mn, mx);
  printf("%.6lf\n%.6lf\n", ans1, ans2);
}
