import math
a, b, c = map(int, input().split( ))
D = (b**2)-(4*a*c)
if D > 0:
x1 = (-b + math.sqrt(D))/2*a
x2 = (-b - math.sqrt(D))/2*a
print('two different roots, x1={0}, x2={1}'.format(round(x1),round(x2)))
elif D == 0:
x1 = (-b + math.sqrt(D))/2*a
print('two same roots, x={0}'.format(round(x1)))
else:
print('no real root')