#include <bits/stdc++.h>
using namespace std;
const int mod = 1e9 + 7;
int main() {
  double a, b, c;
  cin >> a >> b >> c;
  double det = (b * b) - (4 * a * c);
  det = sqrt(det);
  double num = (-b) + det;
  double ans = num / (2 * a);
  num = (-b) - det;
  double ans2 = num / (2 * a);
  printf("%.10lf\n", max(ans2, ans));
  printf("%.10lf\n", min(ans2, ans));
}
