from math import pi a=float(input()) b=float(input()) print(2*pi*(b-a))