e = input("escala : ")
v = float(input("valor da temperatura: "))

if (e.lower() == "c" ):
	F =( 9*v + 160 )/5
	print(round(F, 2))
	
else:
	(e.upper() == "F" )
	C = (5*v/9)-(160/9)
	print(round(C, 2))
	