import math as m a=float(input());b=float(input());print(m.pi*(b-a))