#include <bits/stdc++.h>
using namespace std;
const long double pi = 3.1415926535897;
long long exp(long long base, long long power, int p) {
  if (!base) return 0;
  long long t = exp(base, power / 2, p);
  if (power & 1)
    return t * t * base % p;
  else
    return t * t % p;
}
void solve() {
  long double a, b, c;
  cin >> a >> b >> c;
  long double D = sqrt(b * b - 4 * a * c);
  cout << fixed << setprecision(15)
       << max((-b + D) / (2 * a), (-b - D) / (2 * a)) << "\n"
       << min((-b + D) / (2 * a), (-b - D) / (2 * a));
}
signed main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  int t = 1;
  while (t--) {
    solve();
    cout << "\n";
  }
  return 0;
}
