#include <bits/stdc++.h>
using namespace std;
long long m;
int main() {
  ios::sync_with_stdio(0);
  int a, b, c;
  cin >> a >> b >> c;
  long double delta;
  delta = (b * b) - (4 * a * c);
  delta = sqrt(delta);
  long double x1 = ((-1 * b) - (delta)) / (2 * a);
  long double x2 = ((-1 * b) + (delta)) / (2 * a);
  if (x1 >= x2) {
    cout << setprecision(15) << fixed << x1 << endl;
    cout << setprecision(15) << fixed << x2 << endl;
  } else {
    cout << setprecision(15) << fixed << x2 << endl;
    cout << setprecision(15) << fixed << x1 << endl;
  }
  return 0;
}
