#include <bits/stdc++.h>
using namespace std;
void use_input() { freopen("input.txt", "r", stdin); }
void use_output() { freopen("output.txt", "w", stdout); }
void initACM() {
  ios_base::sync_with_stdio(0);
  cin.tie(NULL);
}
const long long MAXN = 2002;
int main() {
  double a, b, c;
  cin >> a >> b >> c;
  b *= (a) / (abs(a));
  c *= (a) / (abs(a));
  a *= (a) / abs(a);
  cout << fixed << setprecision(9) << (-b + sqrt(b * b - 4 * a * c)) / (2 * a)
       << endl
       << (-b - sqrt(b * b - 4 * a * c)) / (2 * a);
}
