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