#include <bits/stdc++.h>
using namespace std;
int main() {
  double a, b, c, x, y, d;
  cin >> a >> b >> c;
  int zd = 0;
  d = pow(b, 2) - 4 * a * c;
  if (d < 0) {
    d = -d;
    zd++;
  }
  if (a == 0) goto H;
  x = (sqrt(d) - b) / (a * 2);
  y = (-sqrt(d) - b) / (a * 2);
  cout << fixed;
  cout.precision(7);
  if (x > y) {
    cout << x << "\n";
    cout << y;
    return 0;
  } else {
    cout << y << "\n";
    cout << x;
  }
H:;
}
