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