#include <bits/stdc++.h>
using namespace std;
int main() {
  int a, b, c;
  cin >> a >> b >> c;
  float root1 = (-b + sqrt(b * b - 4 * a * c)) / (2 * a);
  float root2 = (-b - sqrt(b * b - 4 * a * c)) / (2 * a);
  if (root1 > root2)
    printf("%.15f\n%.15f", (float)root1, (float)root2);
  else
    printf("%.15f\n%.15f", (float)root2, (float)root1);
  return 0;
}
