from math import*
b = float(input("valor do lado b: "))
c = float(input("valor do lado c: "))
alfa = radians(float(input("valor de b e c: ")))

a = (b ** + c ** - 2 * b * c * (cos(alfa)))

print(round(a, 2))