import math
#variable declaration
F_1=100 #First force in N
F_2=150 #Second force in N
theta=45 #Angle between F_1 and F_2 in degree
#calculation
R=math.sqrt((F_1**2)+(F_2**2)+(2*F_1*F_2*math.cos(theta*math.pi/180)))
#Result
print"R=",int(round(R)),"N"