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