#include <bits/stdc++.h>
using namespace std;
inline int in() {
  int res = 0;
  char c;
  int f = 1;
  while ((c = getchar()) < '0' || c > '9')
    if (c == '-') f = -1;
  while (c >= '0' && c <= '9') res = res * 10 + c - '0', c = getchar();
  return res * f;
}
const int N = 100010;
int main() {
  double a, b, c;
  cin >> a >> b >> c;
  if (a == 0) {
    printf("%.9lf\n%.9lf\n", -(c / b), -(c / b));
    return 0;
  }
  double ans1 = (-b + sqrt(b * b - 4. * a * c)) / (2. * a);
  double ans2 = (-b - sqrt(b * b - 4. * a * c)) / (2. * a);
  printf("%.9lf\n%.9lf\n", max(ans1, ans2), min(ans1, ans2));
  return 0;
}
