#include <bits/stdc++.h>
using namespace std;
int main() {
#pragma warning(disable : 4996)
  double a, b, c;
  double m, n;
  cin >> a >> b >> c;
  m = (-b + sqrt(b * b - 4 * a * c)) / (2 * a);
  n = (-b - sqrt(b * b - 4 * a * c)) / (2 * a);
  cout.precision(10);
  cout << max(m, n) << "\n" << min(m, n);
  return 0;
}
