# unimaxit 
# Fig. 20.1 
# input: 0 6

import math

def f(u):
  return math.sin(u/2)

a,b = map(float, input("a b=? ").split())
eps = 1E-7 * abs(b-a)
t = (math.sqrt(5)-1)/2
s = t*t
x = a + s*(b-a)
y = a + t*(b-a)
fx = f(x)
fy = f(y)

while abs(b-a) >= eps:
  if fx > fy: 
    b = y
    y = x
    x = a + s*(b-a)
    fy = fx
    fx = f(x)
  else: 
    a = x
    x = y
    y = a + t*(b-a)
    fx = fy
    fy = f(y)
  

print(f"Max is at {y:.7f}")