#include <bits/stdc++.h>
using namespace std;
double esp = 1e-11;
const double PI = acos(-1.0);
const long long int INF = 0x3f3f3f3f;
const long long int MOD = 1e9 + 7;
const int maxn = 200010;
int main() {
  int a, b, c;
  scanf("%d%d%d", &a, &b, &c);
  long double x = (-b + sqrt((long double)b * b - 4 * a * c)) / (2 * a);
  long double y = (-b - sqrt((long double)b * b - 4 * a * c)) / (2 * a);
  if (x < y) swap(x, y);
  printf("%.6f\n%.6f\n", (double)x, (double)y);
  return 0;
}
