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