#include <bits/stdc++.h>
using namespace std;
int main() {
  int a, b, c;
  cin >> a >> b >> c;
  cout << setprecision(12)
       << max((double)(-b + (double)sqrt(b * b - 4 * a * c)) / (double)(2 * a),
              (double)(-b - (double)sqrt(b * b - 4 * a * c)) / (double)(2 * a))
       << "\n"
       << min((double)(-b + (double)sqrt(b * b - 4 * a * c)) / (double)(2 * a),
              (double)(-b - (double)sqrt(b * b - 4 * a * c)) / (double)(2 * a));
}
