from math import sqrt
A = raw_input("A: ")
B = raw_input("B: ")
C = raw_input("C: ")
a = float(A)
b = float(B)
c = float(C)
delta = b*b - 4*a*c
if delta > 0:
	x1 = (-b - sqrt(delta))/(2*a)
	x2 = (-b + sqrt(delta))/(2*a)
	print "x1 = ", x1
	print "x2 = ", x2
elif delta == 0:
	x = -b/2/a
	print "x = ", x
else :
	print "Nie ma pierwiastkow rzeczywistych!"


