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