#include <bits/stdc++.h>
using namespace std;
int main() {
  float a, b, c, x1, x2, determinant;
  cin >> a >> b >> c;
  determinant = b * b - 4 * a * c;
  x1 = (-b + sqrt(determinant)) / (2 * a);
  x2 = (-b - sqrt(determinant)) / (2 * a);
  if (x1 < x2) swap(x1, x2);
  cout << fixed << setprecision(10);
  cout << x1 << endl;
  cout << x2 << endl;
  return 0;
}
