#include <bits/stdc++.h>
using namespace std;
int main() {
  int a, b, c;
  cin >> a >> b >> c;
  int s = pow(b, 2) - 4 * a * c;
  double r = sqrt(s);
  double p, q;
  p = (-b + r) / (2 * a);
  q = (-b - r) / (2 * a);
  if (p < q) {
    double tmp = p;
    p = q;
    q = tmp;
  }
  printf("%.15lf\n%.15lf\n", p, q);
}
