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