#include <bits/stdc++.h>
long long f(int k) {
  long long f = 1;
  for (int i = 1; i <= k; i++) f *= i;
  return f;
}
int a[200];
int gcd(long long a, long long b) {
  if (b > a) {
    int k;
    k = b;
    b = a;
    a = k;
  }
  if (a % b == 0)
    return b;
  else
    gcd(b, a % b);
}
using namespace std;
int main() {
  double a, b, c, x, y;
  cin >> a >> b >> c;
  x = (-b + sqrt(b * b - 4 * a * c)) / (2 * a);
  y = (-b - sqrt(b * b - 4 * a * c)) / (2 * a);
  if (x > y)
    printf("%.15lf\n%.15lf", x, y);
  else
    printf("%.15lf\n%.15lf", y, x);
}
