#include <bits/stdc++.h>
using namespace std;
int main() {
  double a, b, c;
  cin >> a >> b >> c;
  double sm = (double)(-b - sqrt(pow(b, 2) - 4 * a * c)) / (2 * a),
         lr = (double)(-b + sqrt(pow(b, 2) - 4 * a * c)) / (2 * a);
  double temp;
  if (sm > lr) {
    temp = sm;
    sm = lr;
    lr = temp;
  }
  printf("%.6lf\n%.6lf\n", lr, sm);
  return 0;
}
