import math x = int(input()) y = int(input()) b = math.sqrt(abs(5*x-3*y))+math.sin(math.sqrt((3+x)/5*y*y)) print(b)