#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  int t;
  t = 1;
  while (t--) {
    long long a, b, c;
    cout << fixed << setprecision(10);
    cin >> a >> b >> c;
    long double d = sqrt(abs(b * b - 4 * a * c));
    long double r1 = (long double)((-b + d) / (2 * a));
    long double r2 = (long double)((-b - d) / (2 * a));
    cout << max(r1, r2) << "\n" << min(r1, r2);
  }
  cerr << "Time taken : " << (float)clock() / CLOCKS_PER_SEC << " secs" << endl;
  return 0;
}
