#include <bits/stdc++.h>
using namespace std;
int main() {
  long double a, b, c, root, root1;
  cin >> a >> b >> c;
  root = (-b + sqrt(b * b - 4 * a * c)) / (2 * a);
  root1 = (-b - sqrt(b * b - 4 * a * c)) / (2 * a);
  if (root > root1)
    cout << fixed << setprecision(15) << root << endl << root1;
  else
    cout << fixed << setprecision(15) << root1 << endl << root;
}
