#include <bits/stdc++.h>
using namespace std;
void solve() {
  int a, b, c;
  cin >> a >> b >> c;
  if (a < 0) {
    a = -a;
    b = -b;
    c = -c;
  }
  int d = b * b - a * c * 4;
  double w = sqrt(d);
  cout << fixed << setprecision(37) << (w - b) / (a * 2) << '\n'
       << (-w - b) / (a * 2);
}
signed main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  int test = 1;
  while (test--) {
    solve();
  }
}
