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