from decimal import Decimal
from math import pi

a=Decimal(input())
b=Decimal(input())
print(2*(b-a)*Decimal(pi))