#include <bits/stdc++.h>
using namespace std;
int main() {
  double a, b, c, ans1, ans2, j;
  cin >> a >> b >> c;
  j = sqrt(b * b - 4.00 * a * c);
  ans1 = (-b + j) / (2.00 * a);
  ans2 = (-b - j) / (2.00 * a);
  cout << fixed;
  cout.precision(15);
  cout << max(ans1, ans2) << endl;
  cout << min(ans1, ans2) << endl;
  return 0;
}
