#include <bits/stdc++.h>
#pragma comment(linker, "/STACK:256000000")
using namespace std;
mt19937 ggen;
double a, b, c;
void solve() {
  cin >> a >> b >> c;
  double D = b * b - 4.0 * a * c;
  double x1 = (-b + sqrt(D)) / (2.0 * a);
  double x2 = (-b - sqrt(D)) / (2.0 * a);
  cout.precision(10);
  cout << fixed << max(x1, x2) << '\n' << min(x1, x2);
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  srand(1313);
  ggen = mt19937(13);
  solve();
  return 0;
}
