#include <bits/stdc++.h>
using namespace std;
int main() {
  int a, b, c;
  double x1, x2;
  double det, re, im;
  cin >> a >> b >> c;
  det = b * b - 4 * a * c;
  if (det > 0) {
    x1 = (-b + sqrt(det)) / (2 * a);
    x2 = (-b - sqrt(det)) / (2 * a);
    if (x1 < x2) swap(x2, x1);
    printf("%0.15lf\n%0.15lf", x1, x2);
  } else if (det == 0) {
    x1 = (-b + sqrt(det)) / (2 * a);
    printf("%0.15lf\n%0.15lf", x1, x1);
  }
  return 0;
}
