#include <bits/stdc++.h>
using namespace std;
int main() {
  long long a, b, c;
  double 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);
  cout.precision(6);
  cout << fixed << max(x, y) << endl << min(x, y);
  return 0;
}
