#include <bits/stdc++.h>
using namespace std;
int main() {
  double a, b, c, r1, r2;
  cin >> a >> b >> c;
  r1 = (b * (-1) + sqrt(b * b - 4 * a * c)) / (2 * a);
  r2 = (b * (-1) - sqrt(b * b - 4 * a * c)) / (2 * a);
  printf("%.16lf\n", max(r1, r2));
  printf("%.16lf\n", min(r1, r2));
  return 0;
}
